Skip to content

Commit 16e1189

Browse files
committed
cli: Show help output when no arguments are specified
1 parent f037c85 commit 16e1189

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cli/src/flags.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,7 @@ impl Skidder {
118118
}
119119
}
120120
// generated end
121+
122+
impl Skidder {
123+
pub const HELP: &str = Self::HELP_;
124+
}

cli/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ fn wrapped_main() -> Result<()> {
2222
flags::SkidderCmd::Version(flags::Version { version }) => {
2323
if version {
2424
println!("skidder-cli {}", env!("CARGO_PKG_VERSION"));
25+
} else {
26+
println!("{}", flags::Skidder::HELP);
2527
}
2628
Ok(())
2729
}

0 commit comments

Comments
 (0)