Skip to main content

cyto_cli/ibu/
cat.rs

1use super::MultiIbuInput;
2
3#[derive(clap::Parser, Debug)]
4pub struct ArgsCat {
5    #[clap(flatten)]
6    pub input: MultiIbuInput,
7
8    /// Output file to write to
9    ///
10    /// Required unless `-p/--pipe` is present.
11    #[clap(short, long, required_unless_present("pipe"))]
12    pub output: Option<String>,
13
14    /// Pipe the output to stdout
15    ///
16    /// Due to binary output, this flag is necessary not to flood the terminal with binary.
17    #[clap(short, long, conflicts_with("output"))]
18    pub pipe: bool,
19
20    #[clap(short = 't', long, default_value = "1")]
21    pub num_threads: usize,
22}