def METHOD_NAME(argv):
    paths = Paths.create(__file__)
    parser = argparse.ArgumentParser()
    subparsers = parser.add_subparsers(
        dest='command',
        metavar='COMMAND',
    )
    subparsers.required = True
    for cls in [CommandSetup, CommandActivate]:
        cls.get_subparser(subparsers)
    arguments = parser.parse_args(argv[1:])
    command = arguments.command(paths, arguments)
    code = command.run()
    return code