def execute_from_command_line():
    try:
        cmd = sys.argv[1]
    except __HOLE__:
        cmd = "help"

    try:
        subcmd = sys.argv[2:]
    except:
        print "error"

    if cmd == "help":
        sys.stdout.write(help_text())
    else:
        exe = get_command(cmd)
        if exe:
            exe.execute(subcmd)
dataset/ETHPy150Open CelloCello/flask-go/flask_go/management.py/execute_from_command_line