upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/ngit
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit')
-rw-r--r--src/bin/ngit/main.rs6
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 {