Use run command as default when no command is supplied
This commit is contained in:
parent
4e07be3754
commit
9c89d8247e
1 changed files with 4 additions and 1 deletions
|
|
@ -42,7 +42,10 @@ Daemon::Daemon()
|
|||
}
|
||||
|
||||
int Daemon::Run(const std::vector<std::string> &arguments) try {
|
||||
return cmd.run({std::cin, std::cout, arguments});
|
||||
auto argv = arguments;
|
||||
if (arguments.size() == 0)
|
||||
argv = {"run"};
|
||||
return cmd.run({std::cin, std::cout, argv});
|
||||
} catch (std::exception &err) {
|
||||
ERROR("%s", err.what());
|
||||
return EXIT_FAILURE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue