mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
type: Make "--help" work
This tripped over argparse --min-args=1, but we already return 1 above if there really is no argument. Fixes #5361.
This commit is contained in:
parent
c729a97c43
commit
b383e29a24
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ function type --description 'Print the type of a command'
|
|||
or return 1
|
||||
|
||||
set -l options 'h/help' 'a/all' 'f/no-functions' 't/type' 'p/path' 'P/force-path' 'q/quiet'
|
||||
argparse -n type --min-args=1 -x t,p,P $options -- $argv
|
||||
argparse -n type -x t,p,P $options -- $argv
|
||||
or return
|
||||
|
||||
if set -q _flag_help
|
||||
|
|
Loading…
Reference in a new issue