mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #3011
619bb723
daemon+simplewallet: given an unknown command, show it (stoffu)
This commit is contained in:
commit
92826e3d8b
@ -269,7 +269,7 @@ int main(int argc, char const * argv[])
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cerr << "Unknown command" << std::endl;
|
std::cerr << "Unknown command: " << command.front() << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6624,7 +6624,8 @@ int main(int argc, char* argv[])
|
|||||||
std::vector<std::string> command = command_line::get_arg(*vm, arg_command);
|
std::vector<std::string> command = command_line::get_arg(*vm, arg_command);
|
||||||
if (!command.empty())
|
if (!command.empty())
|
||||||
{
|
{
|
||||||
w.process_command(command);
|
if (!w.process_command(command))
|
||||||
|
fail_msg_writer() << tr("Unknown command: ") << command.front();
|
||||||
w.stop();
|
w.stop();
|
||||||
w.deinit();
|
w.deinit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user