This is the mail archive of the gdb-prs@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]

[Bug python/22195] New: Provide a help() method to gdb.Command that overrides the docstring


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]