1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 00:28:48 -05:00

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

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