]> granicus.if.org Git - curl/commitdiff
curl: make --disable work as long form of -q
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 Apr 2016 20:32:05 +0000 (22:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Apr 2016 22:31:37 +0000 (00:31 +0200)
To make the aliases list reflect reality.

src/tool_operate.c

index d56cab5fbf7f7405d048edd24c909d88adea59a4..99996e142acbcaaea84a9e872a087160f0449843 100644 (file)
@@ -1843,7 +1843,9 @@ CURLcode operate(struct GlobalConfig *config, int argc, argv_item_t argv[])
 #endif
 
   /* Parse .curlrc if necessary */
-  if((argc == 1) || (!curlx_strequal(argv[1], "-q"))) {
+  if((argc == 1) ||
+     (!curlx_strequal(argv[1], "-q") ||
+      !curlx_strequal(argv[1], "--disable"))) {
     parseconfig(NULL, config); /* ignore possible failure */
 
     /* If we had no arguments then make sure a url was specified in .curlrc */