#clap v3 - when no subcommands match, use a default?

3 messages · Page 1 of 1 (latest)

hardy fox
#

Using clap (the derive API in v3) how can I define a subcommand variant that matches a wildcard? e.g. tmux session <my-session-name> turns into tmux session new <my-session-name>

golden grotto
#

that won't direct it to a specific subcommand, just become args of the parent, though