aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2017-12-27 11:47:39 +0900
committerstoffu <stoffu@protonmail.ch>2017-12-27 15:23:34 +0900
commit619bb7233b6c4bb3cb91fb0b6a8757d6a19d8d03 (patch)
tree294ff6bfc80dfb43839890de6809f5f8679f7e14 /src/simplewallet/simplewallet.cpp
parentMerge pull request #2611 (diff)
downloadmonero-619bb7233b6c4bb3cb91fb0b6a8757d6a19d8d03.tar.xz
daemon+simplewallet: given an unknown command, show it
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index ed426aedd..70a1f9c24 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -6586,7 +6586,8 @@ int main(int argc, char* argv[])
std::vector<std::string> command = command_line::get_arg(*vm, arg_command);
if (!command.empty())
{
- w.process_command(command);
+ if (!w.process_command(command))
+ fail_msg_writer() << tr("Unknown command: ") << command.front();
w.stop();
w.deinit();
}