T'interwebs, I'm confused. I'm writing a program to learn Rust, and the argument parser is behaving oddly. I give it one argument, and it acts as though I've given it another. Please can someone point out the bit where I've been stupid? gist.github.com/arafel/2d65e⦠cc @dsilverstone
1
I'm afraid I've lost the knack to read clap parser chains. I use the derive approach where you define your CLI as structs and enums
3
Though what it looks like is that your `update` argument has the value `search` which is kinda expected - it looks to me like you intended `update` and `search` to be subcommands of `groups` no?
1
I think without .long() or .short() the Arg is treated as positional.
Apr 23, 2022 Β· 7:22 PM UTC
2

