def execute_command_from_args(argsparsed, de_socket):
    """Calls the proper function for the arguments passed to de_query_tool.

    Args:
        argsparsed (Namespace): Should be from create_parser in this file.
        de_socket (ServerProxy): RPC Server Proxy.

    Returns:
        str: Output of the command.
    """

    return de_socket.query_tool(argsparsed.product, argsparsed.format, argsparsed.since)