Skip to content

Commit

Permalink
fix usage bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkLoc committed May 14, 2024
1 parent 516035d commit e43fcbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/target
/Cargo.lock
/target
8 changes: 5 additions & 3 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use clap::{ArgAction, value_parser, Parser};
long_about = None,
next_line_help = false,
disable_help_flag = true,
disable_version_flag = true,
disable_version_flag = false,
before_help = r"Fqkit supports reading and writing gzip (.gz) format.
Bzip2 (.bz2) format is supported since v0.3.8.
Xz (.xz) format is supported since v0.3.9.
Expand Down Expand Up @@ -54,10 +54,12 @@ pub struct Args {

/// prints help information
#[arg(short = 'h', long, action = ArgAction::Help, global= true, help_heading = Some("Global FLAGS"))]
pub help: bool,
pub help: Option<String>,
/*
/// prints version information
#[arg(short = 'V', long, action = ArgAction::Version, global= true, help_heading = Some("Global FLAGS"))]
pub version: bool,
pub version: Option<String>,
*/
}

#[derive(Parser, Debug)]
Expand Down

0 comments on commit e43fcbe

Please sign in to comment.