

def main():
    print(('-' * 80))
    print(('%s %s - CLI Tool' % (PACKAGE.__NAME__, PACKAGE.__version__)))
    print('')
    parser = argparse.ArgumentParser()
    parser.add_argument('project_name', help='Project name')
    parser.add_argument('-c', '--create', help='To create a new project. [flask-marcopolo -c project_name]', action='store_true')
    arg = parser.parse_args()
    try:
        if arg.project_name:
            project_name = arg.project_name
            if arg.create:
                create_project(project_name, 'default')
                print('+ PROJECT CREATED SUCCESSFULLY!')
                print(('\n+ %s -> %s' % (project_name, get_project_dir_path(project_name))))
                print(("\n+ Run 'python run_%s.py' to start the project's server" % project_name))
    except Exception as ex:
        print(('- ERROR: %s' % arg.__str__()))
    print('')

dataset/ETHPy150Open mardix/flask-marcopolo/flask_marcopolo/cmd.py main/VarMisuse@160/302 `ex`->`arg`