assist/command/mkmethod.py
def add_parser(subp, raw):
    """Add a parser to the main subparser. """
    tmpp = subp.add_parser('mkmethod', help='create a method file',
                           formatter_class=raw,
                           description=textwrap.dedent(DESC))
    tmpp.add_argument('method', type=str, metavar='METHODNAME',
                      help='name of the method')
    tmpp.add_argument('type', type=str, choices=['ssa', 'sde'],
                      help='method type')
Add a parser to the main subparser. 
Add a parser to the main subparser.
Add a parser to the main subparser .
def add_parser(subp, raw):
    tmpp = subp.add_parser('mkmethod', help='create a method file',
                           formatter_class=raw,
                           description=textwrap.dedent(DESC))
    tmpp.add_argument('method', type=str, metavar='METHODNAME',
                      help='name of the method')
    tmpp.add_argument('type', type=str, choices=['ssa', 'sde'],
                      help='method type')
def add_parser ( subp , raw ) : tmpp = subp . add_parser ( 'mkmethod' , help = 'create a method file' , formatter_class = raw , description = textwrap . dedent ( DESC ) ) tmpp . add_argument ( 'method' , type = str , metavar = 'METHODNAME' , help = 'name of the method' ) tmpp . add_argument ( 'type' , type = str , choices = [ 'ssa' , 'sde' ] , help = 'method type' )
Add a parser to the main subparser.
Add a parser to the main subparser .
"""Add a parser to the main subparser. """
subp
raw