File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ _comp_cmd_curl()
159
159
esac
160
160
161
161
if [[ $cur == -* ]]; then
162
- COMPREPLY=($( compgen -W ' $(_parse_help "$1" --help all)' -- " $cur " ) )
162
+ COMPREPLY=($( compgen -W ' $(_parse_help "$1" " --help all" )' -- " $cur " ) )
163
163
[[ ${COMPREPLY-} ]] ||
164
164
COMPREPLY=($( compgen -W ' $(_parse_help "$1")' -- " $cur " ) )
165
165
fi
Original file line number Diff line number Diff line change @@ -31,3 +31,15 @@ def test_data_atfile_dir(self, completion):
31
31
def test_unknown_option (self , completion ):
32
32
# Just see that it does not error out
33
33
pass
34
+
35
+ @pytest .mark .complete ("curl --data-bina" , require_cmd = True )
36
+ def test_help_all_option (self , completion ):
37
+ """
38
+ The option used as a canary here is one that should be available
39
+ in all curl versions. It should be only listed in `--help all` output
40
+ for curl versions that have their help output split to multiple
41
+ categories (i.e. ones that support `--help all` to get the complete
42
+ list), as well as the basic `--help` output for earlier versions that
43
+ do not have that.
44
+ """
45
+ assert completion
You can’t perform that action at this time.
0 commit comments