diff options
author | Ray Donnelly <mingw.android@gmail.com> | 2013-07-28 20:59:43 +0100 |
---|---|---|
committer | Ray Donnelly <mingw.android@gmail.com> | 2013-07-28 20:59:56 +0100 |
commit | 43aba778800f896a858f6623824169914d96c73c (patch) | |
tree | 79c164604d11d66c1f7b153fc20d328d6bc0b8cb /ndk-gdb.py | |
parent | b9bc04e589db8077da526e13ece0d49c3f43bd06 (diff) | |
download | ndk-43aba778800f896a858f6623824169914d96c73c.tar.gz |
Minor tidy-ups for ndk-gdb.py
Made the description format use RawTextHelpFormatter
to prevent line breaks in the filename on Windows.
Also replaced \ with / in NDK so it looks more tidy.
Diffstat (limited to 'ndk-gdb.py')
-rwxr-xr-x | ndk-gdb.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ndk-gdb.py b/ndk-gdb.py index 21b2871a2..25e905d29 100755 --- a/ndk-gdb.py +++ b/ndk-gdb.py @@ -93,7 +93,7 @@ MANIFEST = 'AndroidManifest.xml' # started, and sometimes this takes a few seconds. # DELAY = 2.0 -NDK = os.path.abspath(os.path.dirname(sys.argv[0])) +NDK = os.path.abspath(os.path.dirname(sys.argv[0])).replace('\\','/') DEVICE_SERIAL = '' ADB_FLAGS = '' @@ -118,8 +118,9 @@ def handle_args(): global PYPRPR_GNUSTDCXX_BASE parser = argparse.ArgumentParser(description=''' - Setup a gdb debugging session for your Android NDK application. - Read ''' + NDK + '''/docs/NDK-GDB.html for complete usage instructions.''') +Setup a gdb debugging session for your Android NDK application. +Read ''' + NDK + '''/docs/NDK-GDB.html for complete usage instructions.''', + formatter_class=argparse.RawTextHelpFormatter) parser.add_argument( '--verbose', help='Enable verbose mode', action='store_true', dest='verbose') |