mirror of
https://github.com/helix-editor/tree-house.git
synced 2025-10-06 00:12:46 +02:00
cli: Show help output when no arguments are specified
This commit is contained in:
@@ -118,3 +118,7 @@ impl Skidder {
|
||||
}
|
||||
}
|
||||
// generated end
|
||||
|
||||
impl Skidder {
|
||||
pub const HELP: &str = Self::HELP_;
|
||||
}
|
||||
|
@@ -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(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user