From f36132a8370096adc953a7fcec69f55070eb2e71 Mon Sep 17 00:00:00 2001 From: stoffu Date: Sun, 15 Apr 2018 14:52:53 +0900 Subject: wallet cli/rpc: terminate execution with code 0 when --help or --version is given --- src/wallet/wallet_args.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/wallet/wallet_args.h') 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 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, bool> main( int argc, char** argv, const char* const usage, const char* const notice, -- cgit v1.2.3