extrakto icon indicating copy to clipboard operation
extrakto copied to clipboard

extrakto.py: error: argument -a/--add: expected one argument

Open JiyuFang-git opened this issue 1 year ago • 2 comments

Hi there,

I did not define my own filter and I leave extrakto.conf as it is.

I'm not setting @extrakto_filter_order either.

But when l start extrakto its always reporting: extrakto.py: error: argument -a/--add: expected one argument

and I'm seeing ^f=filter[] (aka the filter field is empty)

JiyuFang-git avatar Dec 29 '23 04:12 JiyuFang-git

ok I think the issue is coming from helpers.sh 6601703823671_ pic

I changed line 149 to readarray -t modes_list <<< "$(get_option @extrakto_filter_order) "

and it works like a charm

could this have sth to do with my bash version?

$ bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)

JiyuFang-git avatar Dec 29 '23 04:12 JiyuFang-git

Yes, it's listed in the README. Also see https://github.com/laktak/extrakto/wiki/Bash4

laktak avatar Jan 13 '24 23:01 laktak