Skip to content

Commit

Permalink
Merge pull request #242 from null-dev/patch-2
Browse files Browse the repository at this point in the history
Fix --slurpfile flag.
  • Loading branch information
01mf02 authored Dec 3, 2024
2 parents 5fb671b + ea4e5e1 commit b50f483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaq/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn binds(cli: &Cli) -> Result<Vec<(String, Val)>, Error> {
let s = std::fs::read_to_string(path).map_err(|e| Error::Io(Some(format!("{path:?}")), e));
Ok((k.to_owned(), Val::Str(s?.into())))
});
let slurpfile = cli.rawfile.iter().map(|(k, path)| {
let slurpfile = cli.slurpfile.iter().map(|(k, path)| {
let a = json_array(path).map_err(|e| Error::Io(Some(format!("{path:?}")), e));
Ok((k.to_owned(), a?))
});
Expand Down

0 comments on commit b50f483

Please sign in to comment.