mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
fish_config: Error for choose/save with too many/few args
This commit is contained in:
@@ -198,6 +198,15 @@ function fish_config --description "Launch fish's web based configuration"
|
||||
end
|
||||
|
||||
case choose save
|
||||
if set -q argv[2]
|
||||
echo "Too many arguments" >&2
|
||||
return 1
|
||||
end
|
||||
if not set -q argv[1]
|
||||
echo "Too few arguments" >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
set -l files $dir/$argv[1].theme
|
||||
set -l file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user