❯ cargo run -- --arg subcommand
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target/debug/clap-arg-subcommand --arg subcommand`
error: 'clap-arg-subcommand' requires a subcommand but one was not provided
[subcommands: subcommand, help]
Usage: clap-arg-subcommand [OPTIONS] <COMMAND>
For more information, try '--help'.
Actual Behaviour
--arg consumed subcommand as an arg and then complains about missing subcommand
Please complete the following tasks
Rust Version
1.76
Clap Version
4.5.4
Minimal reproducible code
Steps to reproduce the bug with the above code
Actual Behaviour
--arg consumed
subcommand
as an arg and then complains about missing subcommandExpected Behaviour
Additional Context
No response
Debug Output
No response