Skip to content

Commit

Permalink
rename back to --json-fd
Browse files Browse the repository at this point in the history
Signed-off-by: Antheas Kapenekakis <[email protected]>
  • Loading branch information
antheas committed Mar 8, 2025
1 parent b26d5ca commit 05519a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ pub(crate) struct ProgressOptions {
///
/// Interactive progress will be written to this file descriptor as "JSON lines"
/// format, where each value is separated by a newline.
#[clap(long, hide = true)]
pub(crate) progress_fd: Option<RawProgressFd>,
///
/// The format is experimental and may be removed after a small deprecation period.
#[clap(long)]
pub(crate) json_fd: Option<RawProgressFd>,
}

impl TryFrom<ProgressOptions> for ProgressWriter {
type Error = anyhow::Error;

fn try_from(value: ProgressOptions) -> Result<Self> {
let r = value
.progress_fd
.json_fd
.map(TryInto::try_into)
.transpose()?
.unwrap_or_default();
Expand Down

0 comments on commit 05519a9

Please sign in to comment.