simplewallet: detect typo for incoming_transfers options

This commit is contained in:
stoffu 2017-12-21 11:39:32 +09:00
parent 395e209745
commit b63afbaa99
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012
1 changed files with 7 additions and 0 deletions

View File

@ -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)) if (!parse_subaddress_indices(local_args[0], subaddr_indices))
return true; 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; tools::wallet2::transfer_container transfers;