We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdfab54 commit 316de8aCopy full SHA for 316de8a
src/main.rs
@@ -108,6 +108,10 @@ struct Cli {
108
/// Enable verbose logging
109
#[clap(short, long, action = ArgAction::Count)]
110
verbose: u8,
111
+
112
+ /// Quiet mode - suppress diagnostic messages and progress bars
113
+ #[clap(short, long)]
114
+ quiet: bool,
115
}
116
117
fn download(url: &str) -> Result<impl io::Read> {
@@ -182,7 +186,7 @@ fn main() -> Result<()> {
182
186
rows: cli.rows,
183
187
speed: cli.speed,
184
188
theme: cli.theme.map(|theme| theme.0),
185
- show_progress_bar: true,
189
+ show_progress_bar: !cli.quiet,
190
};
191
192
let input = BufReader::new(reader(&cli.input_filename_or_url)?);
0 commit comments