summaryrefslogtreecommitdiff
path: root/src/option_processing.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-27 00:57:18 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-27 00:57:18 +0900
commit0ef5f4eea13ab25ef47ff312001bc02fa638b93e (patch)
treeea7dacc8bbd04621ea1fcb2263f51a188961eceb /src/option_processing.cc
parent6fcf274f279603db02a1abc45fc8c0a34f37033b (diff)
Add getDownloadHandle API
Diffstat (limited to 'src/option_processing.cc')
-rw-r--r--src/option_processing.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/option_processing.cc b/src/option_processing.cc
index 53689d13..c84aa6e1 100644
--- a/src/option_processing.cc
+++ b/src/option_processing.cc
@@ -274,6 +274,10 @@ void 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);
// we must clear eof bit and seek to the beginning of the buffer.
cmdstream.clear();