gstest_kits/
cli.rs

1use clap::{Args, Parser, Subcommand};
2
3#[derive(Parser)]
4#[command(version, about, long_about=None)]
5pub struct Cli {
6    #[command(subcommand)]
7    pub command: Commands,
8}
9
10#[derive(Subcommand)]
11pub enum Commands {
12    BamDiff(BamDiffArgs),
13}
14
15#[derive(Args)]
16pub struct BamDiffArgs {
17    #[arg(short = 'a', help = "bam a")]
18    pub a_bam: String,
19
20    #[arg(short = 'b', help = "bam b")]
21    pub b_bam: String,
22
23    #[arg(long = "check-seq")]
24    pub check_seq: bool,
25    #[arg(long = "check-qual")]
26    pub check_qual: bool,
27}