Skip to content

Commit 2754d1b

Browse files
committed
set default argv to help
A trivial patch to remove the confused message when people just type "anbox" in their terminal. $ anbox Unknown command 'run' NAME: anbox - anbox ...
1 parent 33b0654 commit 2754d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/anbox/daemon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Daemon::Daemon()
5555

5656
int Daemon::Run(const std::vector<std::string> &arguments) try {
5757
auto argv = arguments;
58-
if (arguments.size() == 0) argv = {"run"};
58+
if (arguments.size() == 0) argv = {"help"};
5959
return cmd.run({std::cin, std::cout, argv});
6060
} catch (std::exception &err) {
6161
ERROR("%s", err.what());

0 commit comments

Comments
 (0)