diff --git a/yq.rs b/yq.rs index da8e25d..e47964c 100644 --- a/yq.rs +++ b/yq.rs @@ -107,7 +107,10 @@ struct Args { impl Args { fn jq_args(&self) -> Vec { - let mut args = vec![self.jq_query.clone().unwrap_or_else(|| ".".into())]; + let mut args = vec![]; + if let Some(query) = &self.jq_query { + args.push(query.into()) + } if self.compact_output { args.push("-c".into()); }