mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Enable prefix matching for subcommands
This commit is contained in:
@@ -9,6 +9,7 @@ pub const DEFAULT_LISTEN_ADDR: &str = "127.0.0.1:8080";
|
|||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
#[clap(author, version, about)]
|
#[clap(author, version, about)]
|
||||||
#[command(name = "asciinema")]
|
#[command(name = "asciinema")]
|
||||||
|
#[command(infer_subcommands = true)]
|
||||||
pub struct Cli {
|
pub struct Cli {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
pub command: Commands,
|
pub command: Commands,
|
||||||
|
|||||||
Reference in New Issue
Block a user