]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/completion.pl: parse all opts
authorThomas Danielsson <tumd@users.noreply.github.com>
Sat, 5 Dec 2020 15:21:53 +0000 (15:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 5 Dec 2020 16:41:46 +0000 (17:41 +0100)
For tab-completion it may be preferable to include all the
available options.

Closes #6280

scripts/completion.pl

index fa807d4de2aea52434c48dd8a35741aa9c2d8d6a..8bbf4838ab953eef866848098a447a722336852c 100755 (executable)
@@ -37,7 +37,7 @@ Getopt::Long::GetOptions(
 Pod::Usage::pod2usage() if $help;
 
 my $regex = '\s+(?:(-[^\s]+),\s)?(--[^\s]+)\s*(\<.+?\>)?\s+(.*)';
-my @opts = parse_main_opts('--help', $regex);
+my @opts = parse_main_opts('--help all', $regex);
 
 if ($shell eq 'fish') {
     print "# curl fish completion\n\n";