summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Danielsson <tumd@users.noreply.github.com>2020-12-05 15:21:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2020-12-05 17:41:46 +0100
commit7a6fdd503db481ce8c3b17520dbafaddffc9200f (patch)
tree9e1cb27ba9e2132f104e29366c4167a94fa124f6
parentb2bde86bbb18ba33c024837485335ede2a9b789a (diff)
downloadcurl-7a6fdd503db481ce8c3b17520dbafaddffc9200f.tar.gz
scripts/completion.pl: parse all opts
For tab-completion it may be preferable to include all the available options. Closes #6280
-rwxr-xr-xscripts/completion.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/completion.pl b/scripts/completion.pl
index fa807d4de..8bbf4838a 100755
--- a/scripts/completion.pl
+++ b/scripts/completion.pl
@@ -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";