diff options
author | stoffu <stoffu@protonmail.ch> | 2017-12-21 11:39:32 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2017-12-28 07:53:31 +0900 |
commit | b63afbaa998c1ec2cb658b24d49c5acc45954eff (patch) | |
tree | 333dbb288e2bcd6c31dffaeee9273b45b65fcb45 /src | |
parent | Merge pull request #2952 (diff) | |
download | monero-b63afbaa998c1ec2cb658b24d49c5acc45954eff.tar.xz |
simplewallet: detect typo for incoming_transfers options
Diffstat (limited to 'src')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index ed426aedd..e696d20c1 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3206,6 +3206,13 @@ bool simple_wallet::show_incoming_transfers(const std::vector<std::string>& args { if (!parse_subaddress_indices(local_args[0], subaddr_indices)) return true; + local_args.erase(local_args.begin()); + } + + if (local_args.size() > 0) + { + fail_msg_writer() << tr("usage: incoming_transfers [available|unavailable] [verbose] [index=<N>]"); + return true; } tools::wallet2::transfer_container transfers; |