import shlex


def repr_command(argv):
    """Represent an argument array as a string.

    Args:
        argv: The arguments of the command.

    Returns:
        A string which could be pasted into a shell for execution.
    """
    return ' '.join(shlex.quote(str(arg)) for arg in argv)