mirror of
https://github.com/aria2/aria2.git
synced 2025-04-04 21:17:41 +03:00
Fix PREF_QUIET is set to A2_V_TRUE even if standalone is true
This commit is contained in:
parent
ebfc5f55e5
commit
22b3e0a4ae
1 changed files with 6 additions and 4 deletions
|
@ -276,10 +276,12 @@ error_code::Value option_processing(Option& op, bool standalone,
|
||||||
overrideWithEnv(*confOption, oparser, PREF_FTP_PROXY, "ftp_proxy");
|
overrideWithEnv(*confOption, oparser, PREF_FTP_PROXY, "ftp_proxy");
|
||||||
overrideWithEnv(*confOption, oparser, PREF_ALL_PROXY, "all_proxy");
|
overrideWithEnv(*confOption, oparser, PREF_ALL_PROXY, "all_proxy");
|
||||||
overrideWithEnv(*confOption, oparser, PREF_NO_PROXY, "no_proxy");
|
overrideWithEnv(*confOption, oparser, PREF_NO_PROXY, "no_proxy");
|
||||||
// For non-standalone mode, set PREF_QUIET to true to suppress
|
if(!standalone) {
|
||||||
// output. The caller can override this by including PREF_QUIET in
|
// For non-standalone mode, set PREF_QUIET to true to suppress
|
||||||
// options argument.
|
// output. The caller can override this by including PREF_QUIET
|
||||||
confOption->put(PREF_QUIET, A2_V_TRUE);
|
// in options argument.
|
||||||
|
confOption->put(PREF_QUIET, A2_V_TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
// we must clear eof bit and seek to the beginning of the buffer.
|
// we must clear eof bit and seek to the beginning of the buffer.
|
||||||
cmdstream.clear();
|
cmdstream.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue