Cygdb.py: Add "--" to cygdb usage string before gdb args
authorMarc Abramowitz <marc@marc-abramowitz.com>
Sun, 13 Oct 2013 00:54:06 +0000 (17:54 -0700)
committerMarc Abramowitz <marc@marc-abramowitz.com>
Sun, 13 Oct 2013 00:54:06 +0000 (17:54 -0700)
The "--" needs to be put before any gdb args so that optparse doesn't think that they're cygdb args.

Cython/Debugger/Cygdb.py

index 334bf41..6a5fc32 100644 (file)
@@ -62,7 +62,7 @@ def make_command_file(path_to_debug_info, prefix_code='', no_import=False):
 
     return tempfilename
 
-usage = "Usage: cygdb [options] [PATH [GDB_ARGUMENTS]]"
+usage = "Usage: cygdb [options] [PATH [-- GDB_ARGUMENTS]]"
 
 def main(path_to_debug_info=None, gdb_argv=None, no_import=False):
     """