Print out example launch intent when executed without any argument

This commit is contained in:
Simon Fels 2017-08-20 13:04:11 +02:00
commit b7173ac94a

View file

@ -84,6 +84,8 @@ anbox::cmds::Launch::Launch()
action([this](const cli::Command::Context&) {
if (!intent_.valid()) {
ERROR("The intent you provided is invalid. Please provide a correct launch intent.");
ERROR("For example to launch the application manager, run:");
ERROR("$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity");
return EXIT_FAILURE;
}