79436469

Date: 2025-02-13 14:19:54
Score: 1
Natty:
Report link

The problem is solved by making the arguments optional:

#[derive(Args)]
#[group(required = true, multiple = false)]
struct Exclusive {
    #[arg(short)]
    a: Option<u8>,

    #[arg(short)]
    b: Option<u8>,
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Markus Grunwald