def get_argument_strings(arg_parser, *args, **kwargs):
    """Takes argparse arguments and returns a list of argument strings or positional names.
    """
    try:
        return arg_parser._get_optional_kwargs(*args, **kwargs)['option_strings']
    except ValueError:
        return [arg_parser._get_positional_kwargs(*args, **kwargs)['dest']]