cli: Show help output when no arguments are specified

This commit is contained in:
Michael Davis
2025-05-19 11:29:22 -04:00
parent f037c85154
commit 16e11895a6
2 changed files with 6 additions and 0 deletions

View File

@@ -118,3 +118,7 @@ impl Skidder {
}
}
// generated end
impl Skidder {
pub const HELP: &str = Self::HELP_;
}

View File

@@ -22,6 +22,8 @@ fn wrapped_main() -> Result<()> {
flags::SkidderCmd::Version(flags::Version { version }) => {
if version {
println!("skidder-cli {}", env!("CARGO_PKG_VERSION"));
} else {
println!("{}", flags::Skidder::HELP);
}
Ok(())
}