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:
parent
b2bde86bbb
commit
7a6fdd503d
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user