[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 08/256: zsh.pl: produce a working completion script
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 08/256: zsh.pl: produce a working completion script again |
Date: |
Fri, 06 Oct 2017 19:41:39 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit ab2a7079cd2a1ec279b1e6b587ba48e50c155e91
Author: Kamil Dudka <address@hidden>
AuthorDate: Mon Aug 14 16:13:32 2017 +0200
zsh.pl: produce a working completion script again
Commit curl-7_54_0-118-g8b2f22e changed the output format of curl --help
to use <file> and <dir> instead of FILE and DIR, which caused zsh.pl to
produce a broken completion script:
% curl --<TAB>
_curl:10: no such file or directory: seconds
Closes #1779
---
docs/cmdline-opts/cacert.d | 2 +-
scripts/zsh.pl | 5 +++--
src/tool_help.c | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/docs/cmdline-opts/cacert.d b/docs/cmdline-opts/cacert.d
index 04e113980..b2ecf9088 100644
--- a/docs/cmdline-opts/cacert.d
+++ b/docs/cmdline-opts/cacert.d
@@ -1,5 +1,5 @@
Long: cacert
-Arg: <CA certificate>
+Arg: <file>
Help: CA certificate to verify peer against
Protocols: TLS
---
diff --git a/scripts/zsh.pl b/scripts/zsh.pl
index f0d8c195f..82b4d9fa2 100755
--- a/scripts/zsh.pl
+++ b/scripts/zsh.pl
@@ -54,10 +54,11 @@ sub parse_main_opts {
$option .= '}' if defined $short;
$option .= '\'[' . trim($desc) . ']\'' if defined $desc;
- $option .= ":$arg" if defined $arg;
+ $option .= ":'$arg'" if defined $arg;
$option .= ':_files'
- if defined $arg and ($arg eq 'FILE' || $arg eq 'DIR');
+ if defined $arg and ($arg eq '<file>' || $arg eq '<filename>'
+ || $arg eq '<dir>');
push @list, $option;
}
diff --git a/src/tool_help.c b/src/tool_help.c
index 42dc77959..a5bfaba24 100644
--- a/src/tool_help.c
+++ b/src/tool_help.c
@@ -54,7 +54,7 @@ static const struct helptxt helptext[] = {
"Append to target file when uploading"},
{" --basic",
"Use HTTP Basic Authentication"},
- {" --cacert <CA certificate>",
+ {" --cacert <file>",
"CA certificate to verify peer against"},
{" --capath <dir>",
"CA directory to verify peer against"},
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] branch master updated (dc3acc160 -> 64d20516f), gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 09/256: cmake: remove dead code for CURL_DISABLE_RTMP, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 02/256: runtests: match keywords case insensitively, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 05/256: test1449: FTP download range with an too large size, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 03/256: travis: build the examples too, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 13/256: m4/curl-compilers.m4: use proper quotes around string, not backticks, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 01/256: examples/ftpuploadresume.c: use portable code, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 12/256: cmake: remove dead code for DISABLED_THREADSAFE, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 06/256: RELEASE-NOTES: synced with 91c46dc44, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 08/256: zsh.pl: produce a working completion script again,
gnunet <=
- [GNUnet-SVN] [gnurl] 07/256: curlver: toward 7.56.0?, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 17/256: configure: check for __builtin_available() availability (#1788), gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 18/256: http_proxy: fix build error for CURL_DOES_CONVERSIONS, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 11/256: curl-confopts.m4: fix --disable-threaded-resolver, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 14/256: darwinssi: fix error: variable length array used, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 21/256: curl/system.h: checksrc compliance, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 19/256: examples/ftpuploadresume: checksrc compliance, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 04/256: strtoofft: reduce integer overflow risks globally, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 47/256: curl: shorten and clean up CA cert verification error message, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 40/256: tftp: fix memory leak on too long filename, gnunet, 2017/10/06