From 7a6fdd503db481ce8c3b17520dbafaddffc9200f Mon Sep 17 00:00:00 2001 From: Thomas Danielsson Date: Sat, 5 Dec 2020 15:21:53 +0000 Subject: [PATCH] scripts/completion.pl: parse all opts For tab-completion it may be preferable to include all the available options. Closes #6280 --- scripts/completion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";