From b84ee319c1081182f29dbd3a15fd723a6634f76f Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Wed, 4 Jun 2025 08:45:25 +0200 Subject: [PATCH] Enable prefix matching for subcommands --- src/cli.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli.rs b/src/cli.rs index 7621df3..6fa0fa0 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -9,6 +9,7 @@ pub const DEFAULT_LISTEN_ADDR: &str = "127.0.0.1:8080"; #[derive(Debug, Parser)] #[clap(author, version, about)] #[command(name = "asciinema")] +#[command(infer_subcommands = true)] pub struct Cli { #[command(subcommand)] pub command: Commands,