X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/8a9fdcac1ccddf56147f9cc34f42514b2384a5bd..72aa95b191fa72055a57c57cc79a68c3a6ebec4b:/tools/helpers/arguments.py diff --git a/tools/helpers/arguments.py b/tools/helpers/arguments.py index f686032..5f1893e 100644 --- a/tools/helpers/arguments.py +++ b/tools/helpers/arguments.py @@ -58,7 +58,7 @@ def arguments_session(subparser): ret = subparser.add_parser("session", help="session controller") sub = ret.add_subparsers(title="subaction", dest="subaction") sub.add_parser("start", help="start session") - sub.add_parser("stop", help="start session") + sub.add_parser("stop", help="stop session") return ret def arguments_container(subparser): @@ -82,6 +82,9 @@ def arguments_app(subparser): remove.add_argument('PACKAGE', help="package name of app to remove") launch = sub.add_parser("launch", help="start single application") launch.add_argument('PACKAGE', help="package name of app to launch") + intent = sub.add_parser("intent", help="start single application") + intent.add_argument('ACTION', help="action name") + intent.add_argument('URI', help="data uri") sub.add_parser("list", help="list installed applications") return ret @@ -101,9 +104,13 @@ def arguments_fullUI(subparser): ret = subparser.add_parser("show-full-ui", help="show android full screen in window") return ret +def arguments_firstLaunch(subparser): + ret = subparser.add_parser("first-launch", help="initialize waydroid and start it") + return ret + def arguments_shell(subparser): ret = subparser.add_parser("shell", help="run remote shell command") - ret.add_argument('COMMAND', nargs='?', help="command to run") + ret.add_argument('COMMAND', nargs='*', help="command to run") return ret def arguments_logcat(subparser): @@ -144,6 +151,7 @@ def arguments(): arguments_app(sub) arguments_prop(sub) arguments_fullUI(sub) + arguments_firstLaunch(sub) arguments_shell(sub) arguments_logcat(sub)