This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Dear GDB, I'm attaching a patch that implements two classes, GdbOptionParser and GdbArgumentParser, which are built around python's standard optparse and argparse but play well with gdb (e.g. don't call exit if you make a typo or ask for help!). The code imports with python >= 2.3, but only provides the argparse-based parser if you actually have argparse in your path (python == 2.7?). The patch: Implements the classes Adds docs Adds test cases What else do you need to get this into the source tree? I just faxed the copyright assignment to FSF. R P.S. This patch is slightly improved from one I sent in error to gdb@sourceware on November 11, 2011
Attachment:
rhl.argumentParsing.patch.3
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |