mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 19:09:26 -05:00
Merge pull request #8391
41b1a6b
simplewallet: print usage when given no args (hinto.janaiyo)
This commit is contained in:
commit
5a3c77be18
@ -6964,18 +6964,33 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
|
|||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
bool simple_wallet::transfer(const std::vector<std::string> &args_)
|
bool simple_wallet::transfer(const std::vector<std::string> &args_)
|
||||||
{
|
{
|
||||||
|
if (args_.size() < 1)
|
||||||
|
{
|
||||||
|
PRINT_USAGE(USAGE_TRANSFER);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
transfer_main(Transfer, args_, false);
|
transfer_main(Transfer, args_, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
bool simple_wallet::locked_transfer(const std::vector<std::string> &args_)
|
bool simple_wallet::locked_transfer(const std::vector<std::string> &args_)
|
||||||
{
|
{
|
||||||
|
if (args_.size() < 1)
|
||||||
|
{
|
||||||
|
PRINT_USAGE(USAGE_LOCKED_TRANSFER);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
transfer_main(TransferLocked, args_, false);
|
transfer_main(TransferLocked, args_, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
bool simple_wallet::locked_sweep_all(const std::vector<std::string> &args_)
|
bool simple_wallet::locked_sweep_all(const std::vector<std::string> &args_)
|
||||||
{
|
{
|
||||||
|
if (args_.size() < 1)
|
||||||
|
{
|
||||||
|
PRINT_USAGE(USAGE_LOCKED_SWEEP_ALL);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
sweep_main(m_current_subaddress_account, 0, true, args_);
|
sweep_main(m_current_subaddress_account, 0, true, args_);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -7674,6 +7689,7 @@ bool simple_wallet::sweep_below(const std::vector<std::string> &args_)
|
|||||||
if (args_.size() < 1)
|
if (args_.size() < 1)
|
||||||
{
|
{
|
||||||
fail_msg_writer() << tr("missing threshold amount");
|
fail_msg_writer() << tr("missing threshold amount");
|
||||||
|
PRINT_USAGE(USAGE_SWEEP_BELOW);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!cryptonote::parse_amount(below, args_[0]))
|
if (!cryptonote::parse_amount(below, args_[0]))
|
||||||
|
Loading…
Reference in New Issue
Block a user