def action_is_satisfied(action):
    num_consumed_args = getattr(action, 'num_consumed_args', 0)

    if action.nargs == ONE_OR_MORE and num_consumed_args < 1:
        return False
    else:
        if action.nargs is None:
            action.nargs = 1
        try:
            return num_consumed_args == action.nargs
        except:
            return True
Domain destroy raises error.
dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/packages/argcomplete/my_argparse.py/action_is_satisfied--crossover with--dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py/DomainDeleteTest.test_delete_destroy_error