clap icon indicating copy to clipboard operation
clap copied to clipboard

External Subcommands on Dervied Struct

Open Tony-Goat opened this issue 2 years ago • 1 comments

Howdy,

I need to parse external subcommands into a struct built using the derive API, and I'm having a hard time figuring out how to do this. I can't find any reference to this kind of functionality in the docs, so is there something I'm missing, or is this just not implemented yet?

Tony-Goat avatar Jul 23 '22 15:07 Tony-Goat

At the moment, external subcommands can only be serialzied into a Vec<String> or Vec<OsString>

See the use of external_subcommand in https://docs.rs/clap/latest/clap/_derive/_cookbook/git_derive/index.html

epage avatar Jul 23 '22 16:07 epage

I'm going to assume this is resolved. If there is anything else remaining for this, let us know!

epage avatar Sep 28 '22 16:09 epage