Пример #1
0
def main():
    if len(sys.argv) < 2:
        parser.print_usage()
        sys.exit()
    args = parser.parse_args()
    with context.local(log_console=sys.stderr):
        commands[args.command](args)
Пример #2
0
def main():
    args = parser.parse_args()
    with context.local(log_console = sys.stderr):
        commands[args.command](args)
Пример #3
0
def main():
    args = parser.parse_args()
    with context.local(log_console = sys.stderr):
        commands[args.command](args)