have argparse report the proper command name

This commit is contained in:
Kurtis Rader 2017-07-09 16:55:16 -07:00
parent abef2cc422
commit 3a782003ed
4 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
function isatty -d "Tests if a file descriptor is a tty"
set -l options 'h/help'
argparse $options -- $argv
argparse -n isatty $options -- $argv
or return
if set -q _flag_help

View file

@ -1,6 +1,6 @@
function nextd --description "Move forward in the directory history"
set -l options 'h/help' 'l/list'
argparse $options -- $argv
argparse -n nextd $options -- $argv
or return
if set -q _flag_help

View file

@ -17,7 +17,7 @@ end
function trap -d 'Perform an action when the shell receives a signal'
set -l options 'h/help' 'l/list-signals' 'p/print'
argparse $options -- $argv
argparse -n trap $options -- $argv
or return
if set -q _flag_help

View file

@ -150,7 +150,7 @@ end
function umask --description "Set default file permission mask"
set -l options 'h/help' 'p/as-command' 'S/symbolic'
argparse $options -- $argv
argparse -n umask $options -- $argv
or return
if set -q _flag_help