use assert_cmd::Command;
#[test]
fn progress_json_flag_accepted_by_help() {
Command::cargo_bin("oximedia")
.expect("oximedia binary not found")
.args(["--progress", "json", "--help"])
.assert()
.success();
}
#[test]
fn progress_plain_flag_accepted() {
Command::cargo_bin("oximedia")
.expect("oximedia binary not found")
.args(["--progress", "plain", "--help"])
.assert()
.success();
}
#[test]
fn progress_json_flag_shows_in_help_output() {
let output = Command::cargo_bin("oximedia")
.expect("oximedia binary not found")
.args(["--help"])
.output()
.expect("failed to run oximedia --help");
let stdout = String::from_utf8_lossy(&output.stdout);
assert!(
stdout.contains("--progress"),
"--progress flag should appear in --help output; got:\n{stdout}"
);
}