13 lines
350 B
Rust
13 lines
350 B
Rust
mod simple_enum;
|
|
|
|
#[derive(Debug, Clone, interactive_clap_derive::InteractiveClap)]
|
|
#[interactive_clap(context = ())]
|
|
pub struct OperationMode {
|
|
#[interactive_clap(subcommand)]
|
|
pub mode: simple_enum::Mode,
|
|
}
|
|
|
|
fn main() {
|
|
let cli_operation_mode = CliOperationMode::default();
|
|
println!("cli_operation_mode: {:?}", cli_operation_mode)
|
|
}
|