diff options
Diffstat (limited to 'tests/ui/duplicate-name/duplicate-short-name.rs')
-rw-r--r-- | tests/ui/duplicate-name/duplicate-short-name.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/duplicate-name/duplicate-short-name.rs b/tests/ui/duplicate-name/duplicate-short-name.rs new file mode 100644 index 0000000..a52bddb --- /dev/null +++ b/tests/ui/duplicate-name/duplicate-short-name.rs @@ -0,0 +1,21 @@ +/// Command +#[derive(argh::FromArgs)] +struct Cmd { + /// foo1 + #[argh(option, short = 'f')] + foo1: u32, + + /// foo2 + #[argh(option, short = 'f')] + foo2: u32, + + /// bar1 + #[argh(option, short = 'b')] + bar1: u32, + + /// bar2 + #[argh(option, short = 'b')] + bar2: u32, +} + +fn main() {} |