aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-01 10:56:59 -0400
committerJack Lloyd <[email protected]>2017-09-01 10:56:59 -0400
commit3c60822c215fa7ddf9a6908bec037ea2b7b6310b (patch)
tree4e2badcd7c778339829b346212ed1cad3295982a /src/cli
parent65ca081ac5979fe02b08c1d59658f4d941b73d87 (diff)
Fix --error-output= option to cli
[ci skip]
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/cli.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/cli.h b/src/cli/cli.h
index 9568fb76f..5955dfe19 100644
--- a/src/cli/cli.h
+++ b/src/cli/cli.h
@@ -215,9 +215,9 @@ class Command
m_output_stream.reset(new std::ofstream(get_arg("output"), std::ios::binary));
}
- if(m_user_args.count("error_output"))
+ if(m_user_args.count("error-output"))
{
- m_error_output_stream.reset(new std::ofstream(get_arg("error_output"), std::ios::binary));
+ m_error_output_stream.reset(new std::ofstream(get_arg("error-output"), std::ios::binary));
}
// Now insert any defaults for options not supplied by the user
@@ -253,7 +253,7 @@ class Command
virtual std::string help_text() const
{
return "Usage: " + m_spec +
- "\n\nAll commands support --verbose --help --output= --error-output --rng-type= --drbg-seed=";
+ "\n\nAll commands support --verbose --help --output= --error-output= --rng-type= --drbg-seed=";
}
const std::string& cmd_spec() const