def action_is_satisfied(action):
num_consumed_args = getattr(action, '<STR_LIT>', <NUM_LIT:0>)<EOL>if action.nargs == ONE_OR_MORE and num_consumed_args < <NUM_LIT:1>:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>if action.nargs is None:<EOL><INDENT>action.nargs = <NUM_LIT:1><EOL><DEDENT>try:<EOL><INDENT>return num_consumed_args == action.nargs<EOL><DEDENT>except:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>
Returns False if the parse would raise an error if no more arguments are given to this action, True otherwise.