clap-repl icon indicating copy to clipboard operation
clap-repl copied to clipboard

Feature Request: Support for Subcommands with Clap Traits

Open rrrodzilla opened this issue 8 months ago • 1 comments

I've noticed that the crate doesn't currently support structures like this:

enum Command {
    PrimaryCommand {
        subcommand: SubCommand,
    }
}
enum Subcommand {
    PrimaryCommand {
        some_arg: String,
    }
}

The issue arises because Subcommand doesn't implement necessary clap traits. It would be great if support could be added for this. Do you have an idea of how you'd do this? I don't mind assisting as well.

Nice work with this crate. 👍🏼

rrrodzilla avatar Oct 18 '23 16:10 rrrodzilla