Skip to content

Commit e43fcbe

Browse files
committed
fix usage bug
1 parent 516035d commit e43fcbe

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/target
2-
/Cargo.lock
1+
/target

src/command.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use clap::{ArgAction, value_parser, Parser};
99
long_about = None,
1010
next_line_help = false,
1111
disable_help_flag = true,
12-
disable_version_flag = true,
12+
disable_version_flag = false,
1313
before_help = r"Fqkit supports reading and writing gzip (.gz) format.
1414
Bzip2 (.bz2) format is supported since v0.3.8.
1515
Xz (.xz) format is supported since v0.3.9.
@@ -54,10 +54,12 @@ pub struct Args {
5454

5555
/// prints help information
5656
#[arg(short = 'h', long, action = ArgAction::Help, global= true, help_heading = Some("Global FLAGS"))]
57-
pub help: bool,
57+
pub help: Option<String>,
58+
/*
5859
/// prints version information
5960
#[arg(short = 'V', long, action = ArgAction::Version, global= true, help_heading = Some("Global FLAGS"))]
60-
pub version: bool,
61+
pub version: Option<String>,
62+
*/
6163
}
6264

6365
#[derive(Parser, Debug)]

0 commit comments

Comments
 (0)