def add_parser_arguments(): """Add options to the parser""" argparser = parser.get() argparser.add_argument('-P', '--profile', action='store', default=None, dest='profile', help='Profile the consumer modules, specifying ' 'the output directory.') argparser.add_argument('-o', '--only', action='store', default=None, dest='consumer', help='Only run the consumer specified') argparser.add_argument('-p', '--prepend-path', action='store', default=None, dest='prepend_path', help='Prepend the python path with the value.') argparser.add_argument('-q', '--qty', action='store', type=int, default=None, dest='quantity', help='Run the specified quantity of consumer ' 'processes when used in conjunction with -o') argparser.add_argument('--version', action='version', version='%(prog)s {}'.format(__version__))
def add_parser_arguments(): """Add options to the parser""" argparser = parser.get() argparser.add_argument('-P', '--profile', action='store', default=None, dest='profile', help='Profile the consumer modules, specifying ' 'the output directory.') argparser.add_argument('-o', '--only', action='store', default=None, dest='consumer', help='Only run the consumer specified') argparser.add_argument('-p', '--prepend-path', action='store', default=None, dest='prepend_path', help='Prepend the python path with the value.') argparser.add_argument('-q', '--qty', action='store', type=int, default=None, dest='quantity', help='Run the specified quantity of consumer ' 'processes when used in conjunction with -o')
def main(): """Invoked by the script installed by setuptools.""" parser.name('tinman') parser.description(__desc__) p = parser.get() p.add_argument('-p', '--path', action='store_true', dest='path', help='Path to prepend to the Python system path') helper.start(Controller)
def main(): """Invoked by the script installed by setuptools.""" parser.name('tinman') parser.description(__desc__) p = parser.get() p.add_argument('-p', '--path', action='store', dest='path', help='Path to prepend to the Python system path') helper.start(Controller)