From 1740f9276bd8ed0ee0950d3090b64fd48043748e Mon Sep 17 00:00:00 2001 From: Jez Cope Date: Tue, 6 Jul 2021 20:17:36 +0100 Subject: [PATCH] Print simple message if no subcommand --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4045479..5c75958 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,8 +61,7 @@ async fn main() -> Result<()> { } }, ("", None) => { - let mut out = io::stdout(); - app.write_long_help(&mut out).unwrap(); + println!("No subcommand given: see `mxadm help` for usage information"); } (c, _) => { todo!("Subcommand '{}' not implemented yet!", c);