mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-05 05:11:15 -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:
@@ -3,7 +3,7 @@
|
||||
# with description $argv[2] if defined, otherwise use 'Directory'.
|
||||
# If no arguments are provided, attempts to complete current commandline token.
|
||||
#
|
||||
function __fish_complete_directories -d "Complete directory prefixes" --argument comp desc
|
||||
function __fish_complete_directories -d "Complete directory prefixes" --argument-names comp desc
|
||||
if not set -q desc[1]
|
||||
set desc Directory
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user