def get_query_from_args(args): """Creates a Query object from the CLI arguments. Filter objects are created from the CLI argument and attached to the Query object. :param args: CLI arguments :return: A Query object along with the created filters, if found. """ qc = QueryConfig.from_args(args) filters = get_filters_from_args(args) query = Query.from_config(qc) query.attach_filters(filters) return query