diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-05 00:05:41 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-05 00:05:41 +0900 |
| commit | 22b3e0a4ae030533bae766fbef19cbbf7a4529c5 (patch) | |
| tree | e7ad6263ecda294694a10435eda6d00a799da9b5 | |
| parent | ebfc5f55e50972520ead1fda7cabcdc494c61e3f (diff) | |
Fix PREF_QUIET is set to A2_V_TRUE even if standalone is truelibaria2
| -rw-r--r-- | src/option_processing.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/option_processing.cc b/src/option_processing.cc index 5c017989..d93dff02 100644 --- a/src/option_processing.cc +++ b/src/option_processing.cc @@ -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_ALL_PROXY, "all_proxy"); overrideWithEnv(*confOption, oparser, PREF_NO_PROXY, "no_proxy"); - // For non-standalone mode, set PREF_QUIET to true to suppress - // output. The caller can override this by including PREF_QUIET in - // options argument. - confOption->put(PREF_QUIET, A2_V_TRUE); + if(!standalone) { + // For non-standalone mode, set PREF_QUIET to true to suppress + // output. The caller can override this by including PREF_QUIET + // in options argument. + confOption->put(PREF_QUIET, A2_V_TRUE); + } // we must clear eof bit and seek to the beginning of the buffer. cmdstream.clear(); |
