Don't use abbreviated long options

"function --argument" is not a thing, it's "--argument-names". This only
accidentally works because our getopt is awful and allows abbreviated
long options.

Similarly, one argparse test used "--d" instead of "-d" or "--def".
This commit is contained in:
Fabian Homborg
2020-09-19 11:39:51 +02:00
parent 21077c0c9a
commit a3e20a4d38
13 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
function __fish_complete_convert_options --description 'Complete Convert options' --argument what
function __fish_complete_convert_options --description 'Complete Convert options' --argument-names what
switch $what
case format Format
convert -list Format | sed '1,/----/d; /^$/,$d; /^$/d; s/^\s*\([a-zA-Z0-9-]\+\)\**\s*\S\+\s\+\\(\S\+\)\s\+\(.\+\S\)\s*$/\1\t\2 \3/'