diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:50:20 +0100 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:50:21 +0100 |
commit | a71db6d23973a2e8d8a1e6b9dc15188b453f47e9 (patch) | |
tree | e6ebb07c7e7dce2b8d8844f8ff13888583726d7b /src/simplewallet | |
parent | Merge pull request #2978 (diff) | |
parent | simplewallet: detect typo for incoming_transfers options (diff) | |
download | monero-a71db6d23973a2e8d8a1e6b9dc15188b453f47e9.tar.xz |
Merge pull request #2981
b63afbaa simplewallet: detect typo for incoming_transfers options (stoffu)
Diffstat (limited to 'src/simplewallet')
-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 b0fd1fa75..b9a3e45b4 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3307,6 +3307,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; |