]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_getparam: make --get a true boolean
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Feb 2023 07:19:06 +0000 (08:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 16 Feb 2023 09:53:59 +0000 (10:53 +0100)
To match how it is documented in the man page.

Fixes #10527
Reported-by: u20221022 on github
Closes #10531

src/tool_getparam.c

index 68258e9d1bf4aa3d133fc8fba8c44464b0fb6b65..dc2edb28b4170f2a324f99daf91bfb42c6673278 100644 (file)
@@ -294,7 +294,7 @@ static const struct LongShort aliases[]= {
   {"F",  "form",                     ARG_STRING},
   {"Fs", "form-string",              ARG_STRING},
   {"g",  "globoff",                  ARG_BOOL},
-  {"G",  "get",                      ARG_NONE},
+  {"G",  "get",                      ARG_BOOL},
   {"Ga", "request-target",           ARG_STRING},
   {"h",  "help",                     ARG_BOOL},
   {"H",  "header",                   ARG_STRING},