File tree 1 file changed +22
-0
lines changed 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,25 @@ static int serverSocket = -1;
44
44
45
45
static const char socketPath[] = " #Boot2Qt_appcontroller" ;
46
46
47
+ static void usage ()
48
+ {
49
+ printf (" appcontroller [--debug-gdb] [--debug-qml] [--port-range <range>] [--stop] [--launch] [--show-platfrom] [--make-default] [--remove-default] [--print-debug] [--version] [--detach] [executable] [arguments]\n "
50
+ " \n "
51
+ " --port-range <range> Port range to use for debugging connections\n "
52
+ " --debug-gdb Start GDB debugging\n "
53
+ " --debug-qml Start QML debugging\n "
54
+ " --stop Stop already running application\n "
55
+ " --launch Start application without stopping already running application\n "
56
+ " --show-platform Show platform information\n "
57
+ " --make-default Make this application the default on boot\n "
58
+ " --remove-default Restore the default application\n "
59
+ " --print-debug Print debug messages to stdout on Android\n "
60
+ " --version Print version information\n "
61
+ " --detach Start application as usual, then go into background\n "
62
+ " --help, -h, -help Show this help\n "
63
+ );
64
+ }
65
+
47
66
static void setupAddressStruct (struct sockaddr_un &address)
48
67
{
49
68
address.sun_family = AF_UNIX;
@@ -285,6 +304,9 @@ int main(int argc, char **argv)
285
304
return 0 ;
286
305
} else if (arg == " --detach" ) {
287
306
detach = true ;
307
+ } else if (arg == " --help" || arg == " -help" || arg == " -h" ) {
308
+ usage ();
309
+ return 0 ;
288
310
} else {
289
311
args.prepend (arg);
290
312
break ;
You can’t perform that action at this time.
0 commit comments