assist/command/mkcollector.py
def add_parser(subp, raw):
    """Add a parser to the main subparser. """
    tmpp = subp.add_parser('mkcollector', help='create a collector file',
                           formatter_class=raw,
                           description=textwrap.dedent(DESC))
    tmpp.add_argument('collector', type=str, metavar='COLLECTORNAME',
                      help='name of the collector')
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('mkcollector', help='create a collector file',
                           formatter_class=raw,
                           description=textwrap.dedent(DESC))
    tmpp.add_argument('collector', type=str, metavar='COLLECTORNAME',
                      help='name of the collector')
def add_parser ( subp , raw ) : tmpp = subp . add_parser ( 'mkcollector' , help = 'create a collector file' , formatter_class = raw , description = textwrap . dedent ( DESC ) ) tmpp . add_argument ( 'collector' , type = str , metavar = 'COLLECTORNAME' , help = 'name of the collector' )
Add a parser to the main subparser.
Add a parser to the main subparser .
"""Add a parser to the main subparser. """
subp
raw