aboutsummaryrefslogtreecommitdiff
path: root/src/gen_multisig/gen_multisig.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-04-15 14:52:53 +0900
committerstoffu <stoffu@protonmail.ch>2018-04-22 11:48:44 +0900
commitf36132a8370096adc953a7fcec69f55070eb2e71 (patch)
tree5d48ca9acb73a313e3c27426e497555d33140bc2 /src/gen_multisig/gen_multisig.cpp
parentMerge pull request #3670 (diff)
downloadmonero-f36132a8370096adc953a7fcec69f55070eb2e71.tar.xz
wallet cli/rpc: terminate execution with code 0 when --help or --version is given
Diffstat (limited to 'src/gen_multisig/gen_multisig.cpp')
-rw-r--r--src/gen_multisig/gen_multisig.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gen_multisig/gen_multisig.cpp b/src/gen_multisig/gen_multisig.cpp
index 943589b4a..03e0a7946 100644
--- a/src/gen_multisig/gen_multisig.cpp
+++ b/src/gen_multisig/gen_multisig.cpp
@@ -174,7 +174,9 @@ int main(int argc, char* argv[])
command_line::add_arg(desc_params, arg_stagenet);
command_line::add_arg(desc_params, arg_create_address_file);
- const auto vm = wallet_args::main(
+ boost::optional<po::variables_map> vm;
+ bool should_terminate = false;
+ std::tie(vm, should_terminate) = wallet_args::main(
argc, argv,
"monero-gen-multisig [(--testnet|--stagenet)] [--filename-base=<filename>] [--scheme=M/N] [--threshold=M] [--participants=N]",
genms::tr("This program generates a set of multisig wallets - use this simpler scheme only if all the participants trust each other"),
@@ -185,6 +187,8 @@ int main(int argc, char* argv[])
);
if (!vm)
return 1;
+ if (should_terminate)
+ return 0;
bool testnet, stagenet;
uint32_t threshold = 0, total = 0;