summaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-04-28 22:32:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-04-29 00:31:37 +0200
commite200034425a7625b1bc65928ac6a42b6afe064e4 (patch)
tree5e723e4b7f9b0ec79136b027711408058c3475db /src/tool_operate.c
parentb499973c7bb9f8e7a5d12acf899a60a2dcdf4631 (diff)
downloadcurl-e200034425a7625b1bc65928ac6a42b6afe064e4.tar.gz
curl: make --disable work as long form of -q
To make the aliases list reflect reality.
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index d56cab5fb..99996e142 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -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 */