aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_args.h
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/wallet/wallet_args.h
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 '')
-rw-r--r--src/wallet/wallet_args.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wallet/wallet_args.h b/src/wallet/wallet_args.h
index af6685845..a1f251144 100644
--- a/src/wallet/wallet_args.h
+++ b/src/wallet/wallet_args.h
@@ -44,8 +44,11 @@ namespace wallet_args
concurrency. Log file and concurrency arguments are handled, along with basic
global init for the wallet process.
- \return The list of parsed options, iff there are no errors.*/
- boost::optional<boost::program_options::variables_map> main(
+ \return
+ pair.first: The list of parsed options, iff there are no errors.
+ pair.second: Should the execution terminate succesfully without actually launching the application
+ */
+ std::pair<boost::optional<boost::program_options::variables_map>, bool> main(
int argc, char** argv,
const char* const usage,
const char* const notice,