]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_help: add missing argument for --create-file-mode
authorJay Satiro <raysatiro@yahoo.com>
Wed, 10 Feb 2021 19:10:49 +0000 (14:10 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 10 Feb 2021 19:10:49 +0000 (14:10 -0500)
Prior to this change the required argument was not shown in curl --help.

before:
     --create-file-mode File mode for created files

after:
     --create-file-mode <mode> File mode (octal) for created files

Reported-by: ZimCodes@users.noreply.github.com
Fixes https://github.com/curl/curl/issues/6590

src/tool_help.c

index a094450e5c12d32a7388774b3500d2d5e2d12537..b90c6fd05dc07de16347246bbcfc14d35876699c 100644 (file)
@@ -184,8 +184,8 @@ static const struct helptxt helptext[] = {
   {"    --create-dirs",
    "Create necessary local directory hierarchy",
    CURLHELP_CURL},
-  {"    --create-file-mode",
-   "File mode for created files",
+  {"    --create-file-mode <mode>",
+   "File mode (octal) for created files",
    CURLHELP_SFTP | CURLHELP_SCP | CURLHELP_FILE | CURLHELP_UPLOAD},
   {"    --crlf",
    "Convert LF to CRLF in upload",