Skip to main content

cyto_cli/ibu/
input.rs

1#[derive(clap::Parser, Debug)]
2#[clap(next_help_heading = "IBU Input Options")]
3pub struct IbuInput {
4    /// Input ibu file [default=stdin]
5    #[clap(short = 'i', long)]
6    pub input: Option<String>,
7}
8impl IbuInput {
9    pub fn from_path(path: &str) -> Self {
10        Self {
11            input: Some(path.to_string()),
12        }
13    }
14}
15
16#[derive(clap::Parser, Debug)]
17#[clap(next_help_heading = "IBU Input Options")]
18pub struct MultiIbuInput {
19    #[clap(num_args=1.., required=true)]
20    pub inputs: Vec<String>,
21}