1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

curl: make --disable work as long form of -q

To make the aliases list reflect reality.
This commit is contained in:
Daniel Stenberg 2016-04-28 22:32:05 +02:00
parent b499973c7b
commit e200034425

View 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 */