This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/22195] New: Provide a help() method to gdb.Command that overrides the docstring
- From: "ciro.santilli at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 24 Sep 2017 04:32:30 +0000
- Subject: [Bug python/22195] New: Provide a help() method to gdb.Command that overrides the docstring
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22195
Bug ID: 22195
Summary: Provide a help() method to gdb.Command that overrides
the docstring
Product: gdb
Version: 7.11.1
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: ciro.santilli at gmail dot com
Target Milestone: ---
I want to use pythons argparse for command parameter handling after
gdb.string_to_argv
If I had a method:
define help():
that would override the class docstring for:
help mycmd
I could return:
return parser.format_usage()
there and everything would be DRY and beautiful.
--
You are receiving this mail because:
You are on the CC list for the bug.