More ndk-gdb.py argument tweaks.
Change-Id: I4be46cc93159b28faf78d8231b24d918fa330788
diff --git a/ndk-gdb.py b/ndk-gdb.py
index 41b178d..b6b58ed 100755
--- a/ndk-gdb.py
+++ b/ndk-gdb.py
@@ -165,15 +165,16 @@
action='store_true')
app_group = parser.add_argument_group('application debugging')
- app_group.add_argument( '--start',
+ start_group = app_group.add_mutually_exclusive_group()
+ start_group.add_argument( '--start',
help='Launch application instead of attaching to existing one',
action='store_true')
- app_group.add_argument( '--launch',
+ start_group.add_argument( '--launch',
help='Same as --start, but specify activity name (see below)',
dest='launch_name', nargs=1)
- app_group.add_argument( '--launch-list',
+ start_group.add_argument( '--launch-list',
help='List all launchable activity names from manifest',
action='store_true')