1 2 3 4 5 6 7 8 9 10 11 12 13 14
use clap::Parser; use cod_types::api::state_type::StateType; /// View details of selected issue #[derive(Parser, Debug)] pub struct ViewIssueArgs { /// Select from issues with the chosen state #[arg(short, long, value_enum, default_value_t = StateType::All)] pub state: StateType, /// Disabled: display issue summary | Enabled: display issue commen history #[arg(short, long)] pub comments: bool, }