From b383e29a24c1f5240b7895545b7c3c6e35a3e6f6 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 22 Nov 2018 12:27:25 +0100 Subject: [PATCH] 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. --- share/functions/type.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/type.fish b/share/functions/type.fish index 32ddc4ef2..b594aa3d0 100644 --- a/share/functions/type.fish +++ b/share/functions/type.fish @@ -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