diff options
Diffstat (limited to 'src/option_processing.cc')
| -rw-r--r-- | src/option_processing.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/option_processing.cc b/src/option_processing.cc index 89ea9cf3..f6b12358 100644 --- a/src/option_processing.cc +++ b/src/option_processing.cc @@ -300,6 +300,9 @@ error_code::Value option_processing(Option& op, bool standalone, showUsage("", oparser, global::cerr()); return e.getErrorCode(); } + if (standalone && op.getAsBool(PREF_STDERR)) { + global::redirectStdoutToStderr(); + } if (standalone && !op.getAsBool(PREF_ENABLE_RPC) && #ifdef ENABLE_BITTORRENT op.blank(PREF_TORRENT_FILE) && |
