clap-verbosity-flag icon indicating copy to clipboard operation
clap-verbosity-flag copied to clipboard

Aliasing verbose

Open joshka opened this issue 1 year ago • 2 comments

In git-cliff, there's an existing manual verbosity flag which I was looking at replacing with this crate. But there's an alias (--debug) on the verbosity flag. I wonder whether there's some way to implement an alias like this through to the underlying verbose and quiet args.

This is in a "nice to have" bucket rather than a "must have" bucket for me.

joshka avatar Nov 29 '24 01:11 joshka

Clap doesn't support this automatically. We'd need to define it and have the conflict and pick one.

Personally, each app does flags like this a little differently and I'd prefer effort towards making it so people can add their custom flags themselves.

epage avatar Nov 29 '24 01:11 epage

Yeah, I figured as much :)

joshka avatar Nov 29 '24 02:11 joshka