#[command(group(
ArgGroup::new("item")
.required(true)
.args(&["item_id", "item_number"]),
))]structArgs{/// The ID of the item
#[arg(long = "item_id", required = false)]item_id: Option<String>,/// The number of the item
#[arg(short = 'n', long = "item_number", required = false)]item_number: Option<u32>,}
this is example how you can use argGroup , so it's better that how used -n or item_id
```rust
#[command(group(
ArgGroup::new("item")
.required(true)
.args(&["item_id", "item_number"]),
))]
struct Args {
/// The ID of the item
#[arg(long = "item_id", required = false)]
item_id: Option<String>,
/// The number of the item
#[arg(short = 'n', long = "item_number", required = false)]
item_number: Option<u32>,
}
```
this is example how you can use argGroup , so it's better that how used -n or item_id
this is example how you can use argGroup , so it's better that how used -n or item_id
https://code.corpglory.net/corpglory/mps/pulls/28