Skip to content

Commit

Permalink
Merge pull request #108 from 01mf02/revert-91-nul-output
Browse files Browse the repository at this point in the history
Revert "Implement --nul-output"
  • Loading branch information
01mf02 authored Aug 29, 2023
2 parents d098047 + ce1400b commit f79f6bc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions jaq/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ struct Cli {
#[arg(short, long)]
join_output: bool,

/// Print NUL after each value, instead of a newline
///
/// Unlike jq, this does not enable `--raw-output`.
#[arg(short = '0', long)]
nul_output: bool,

/// Color output
#[arg(long, value_name = "WHEN", default_value = "auto")]
color: Color,
Expand Down Expand Up @@ -458,9 +452,7 @@ fn print(cli: &Cli, val: Val, writer: &mut impl Write) -> io::Result<()> {
}?
}
};
if cli.nul_output {
write!(writer, "\0")?
} else if !cli.join_output {
if !cli.join_output {
writeln!(writer)?
}
Ok(())
Expand Down

0 comments on commit f79f6bc

Please sign in to comment.