scripts/completion.pl: parse all opts

For tab-completion it may be preferable to include all the
available options.

Closes #6280
This commit is contained in:
Thomas Danielsson 2020-12-05 15:21:53 +00:00 committed by Daniel Stenberg
parent b2bde86bbb
commit 7a6fdd503d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

@ -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";