diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/ngit/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs index 5458251..c88238a 100644 --- a/src/bin/ngit/main.rs +++ b/src/bin/ngit/main.rs | |||
| @@ -67,9 +67,9 @@ async fn main() { | |||
| 67 | } => sub_commands::apply::launch(id, *stdout, *offline).await, | 67 | } => sub_commands::apply::launch(id, *stdout, *offline).await, |
| 68 | } | 68 | } |
| 69 | } else { | 69 | } else { |
| 70 | // Handle the case where no command is provided | 70 | // Show help when no command is provided |
| 71 | eprintln!("Error: A command must be provided. Use '--help' for more information."); | 71 | Cli::parse_from(["ngit", "--help"]); |
| 72 | std::process::exit(1); | 72 | std::process::exit(0); |
| 73 | }; | 73 | }; |
| 74 | 74 | ||
| 75 | if let Err(err) = result { | 75 | if let Err(err) = result { |