mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
have argparse report the proper command name
This commit is contained in:
parent
abef2cc422
commit
3a782003ed
4 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
function isatty -d "Tests if a file descriptor is a tty"
|
function isatty -d "Tests if a file descriptor is a tty"
|
||||||
set -l options 'h/help'
|
set -l options 'h/help'
|
||||||
argparse $options -- $argv
|
argparse -n isatty $options -- $argv
|
||||||
or return
|
or return
|
||||||
|
|
||||||
if set -q _flag_help
|
if set -q _flag_help
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
function nextd --description "Move forward in the directory history"
|
function nextd --description "Move forward in the directory history"
|
||||||
set -l options 'h/help' 'l/list'
|
set -l options 'h/help' 'l/list'
|
||||||
argparse $options -- $argv
|
argparse -n nextd $options -- $argv
|
||||||
or return
|
or return
|
||||||
|
|
||||||
if set -q _flag_help
|
if set -q _flag_help
|
||||||
|
|
|
@ -17,7 +17,7 @@ end
|
||||||
|
|
||||||
function trap -d 'Perform an action when the shell receives a signal'
|
function trap -d 'Perform an action when the shell receives a signal'
|
||||||
set -l options 'h/help' 'l/list-signals' 'p/print'
|
set -l options 'h/help' 'l/list-signals' 'p/print'
|
||||||
argparse $options -- $argv
|
argparse -n trap $options -- $argv
|
||||||
or return
|
or return
|
||||||
|
|
||||||
if set -q _flag_help
|
if set -q _flag_help
|
||||||
|
|
|
@ -150,7 +150,7 @@ end
|
||||||
|
|
||||||
function umask --description "Set default file permission mask"
|
function umask --description "Set default file permission mask"
|
||||||
set -l options 'h/help' 'p/as-command' 'S/symbolic'
|
set -l options 'h/help' 'p/as-command' 'S/symbolic'
|
||||||
argparse $options -- $argv
|
argparse -n umask $options -- $argv
|
||||||
or return
|
or return
|
||||||
|
|
||||||
if set -q _flag_help
|
if set -q _flag_help
|
||||||
|
|
Loading…
Reference in a new issue