mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 17:21:14 -03:00
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:
@@ -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/'
|
||||
|
||||
Reference in New Issue
Block a user