Skip to content

Commit

Permalink
add value name in file cli.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkLoc committed Mar 21, 2024
1 parent 09d2acf commit 6e2a361
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ pub enum Subcli {
/// input fasta file, or read from stdin
input: Option<String>,
/// print first N fasta records
#[arg(short = 'n', long = "num", default_value_t = 10)]
#[arg(short = 'n', long = "num", default_value_t = 10, value_name = "int")]
num: usize,
/// output fasta file name, or write to stdout, file name ending in .gz/.bz2/.xz will be compressed automatically
#[arg(short = 'o', long = "out")]
#[arg(short = 'o', long = "out", value_name = "str")]
output: Option<String>,
},
/// convert fasta to fastq file
fa2fq {
/// input fasta file, or read from stdin
input: Option<String>,
/// fasta to fastq and generate fake fastq quality.
#[arg(short = 'Q', long = "qual", default_value_t = 'F')]
#[arg(short = 'Q', long = "qual", default_value_t = 'F', value_name = "char")]
qual: char,
/// output fastq file name, or write to stdout, file name ending in .gz/.bz2/.xz will be compressed automatically
#[arg(short = 'o', long = "out")]
#[arg(short = 'o', long = "out", value_name = "str")]
output: Option<String>,
},
/// create index and random access to fasta files
Expand All @@ -99,21 +99,21 @@ pub enum Subcli {
#[arg(short = 'k', long = "keep", help_heading = Some("FLAGS"))]
keep: bool,
/// output file name or write to stdout, file ending in .gz/.bz2/.xz will be compressed automatically
#[arg(short = 'o', long = "out")]
#[arg(short = 'o', long = "out", value_name = "str")]
output: Option<String>,
},
/// print fasta records in a range
range {
/// input fasta file, or read from stdin
input: Option<String>,
/// skip first int fasta records
#[arg(short = 's', long = "skip", default_value_t = 0)]
#[arg(short = 's', long = "skip", default_value_t = 0, value_name = "int")]
skip: usize,
/// take int fasta records
#[arg(short = 't', long = "take")]
#[arg(short = 't', long = "take", value_name = "int")]
take: usize,
/// fasta output file name or write to stdout, files ending in .gz/.bz2/.xz will be compressed automatically
#[arg(short = 'o', long = "out")]
#[arg(short = 'o', long = "out", value_name = "str")]
out: Option<String>,

},
Expand Down

0 comments on commit 6e2a361

Please sign in to comment.