Skip to content

Commit

Permalink
fix(main): fix command line argument parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cauliyang committed Nov 1, 2023
1 parent de38bf4 commit eaf1428
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ codegen-units = 1

[dependencies]
anyhow = { version = "1.0" }
clap = { version = "4.4.7", features = ["wrap_help", "derive"] }
clap = { version = "4.4.7", features = ["wrap_help", "derive", "color"] }
clap-verbosity-flag = "2.1.0"
env_logger = "0.10"
human-panic = "1.2.1"
indicatif = "0.17"
log = "0.4"
colored = "2"

noodles-bam = "0.49.0"
noodles-bgzf = "0.25"
Expand Down
1 change: 0 additions & 1 deletion src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ where
ReadName::try_from(s.into_bytes())
.map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))
})?;

read_names.insert(read_name);
}

Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ enum Commands {
/// Extract reads from a BAM file
Extract {
/// Read IDs
#[arg(short, long)]
readids: String,
/// Bam input file
#[arg(short, long)]
input: PathBuf,

/// Is the output file a BAM file
#[arg(short = 'b', default_value = "false")]
isbam: bool,
},
Expand Down

0 comments on commit eaf1428

Please sign in to comment.