We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff4f37 commit 6b68ae2Copy full SHA for 6b68ae2
1 file changed
src/cli.rs
@@ -115,14 +115,14 @@ pub fn run_cli() -> Result<()> {
115
return Ok(());
116
}
117
118
- let Some(command) = cli.command else {
119
- // Output program help in markdown format
120
- let help_str = Cli::command().render_long_help().to_string();
121
- println!("{help_str}");
122
- return Ok(());
123
- };
+ if let Some(command) = cli.command {
+ command.execute()?;
+ } else {
+ // No command provided. Show help.
+ Cli::command().print_long_help()?;
+ }
124
125
- command.execute()
+ Ok(())
126
127
128
/// Handle the `run` command.
0 commit comments