diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index b93df83..dc00524 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,6 +55,7 @@ use anyhow::Context; use anyhow::Result; use clap::ArgMatches; use logcrate::debug; +use logcrate::error; use rand as _; // Required to make lints happy use aquamarine as _; // doc-helper crate use funty as _; // doc-helper crate @@ -222,7 +223,11 @@ async fn main() -> Result<()> { .await .context("endpoint command failed")? }, - Some((other, _)) => return Err(anyhow!("Unknown subcommand: {}", other)), + Some((other, _)) => { + error!("Unknown subcommand: {}", other); + error!("Use --help to find available subcommands"); + return Err(anyhow!("Unknown subcommand: {}", other)) + }, None => return Err(anyhow!("No subcommand")), } |