@classmethod
    def get_action(cls, args):
        if len(args) == 1:
            return None
        elif args[1] in ACTION_MAP.keys():
            return args[1]
        return None
This method returns an action type.
dataset/ETHPy150Open openstack/compass-core/compass/actions/cli.py/BootCLI.get_action