aboutsummaryrefslogtreecommitdiff
path: root/structopt/tests/ui/skip_with_other_options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'structopt/tests/ui/skip_with_other_options.rs')
-rw-r--r--structopt/tests/ui/skip_with_other_options.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/structopt/tests/ui/skip_with_other_options.rs b/structopt/tests/ui/skip_with_other_options.rs
new file mode 100644
index 0000000..73c5342
--- /dev/null
+++ b/structopt/tests/ui/skip_with_other_options.rs
@@ -0,0 +1,15 @@
+use structopt::StructOpt;
+
+#[derive(StructOpt, Debug)]
+#[structopt(name = "test")]
+pub struct Opt {
+ #[structopt(long)]
+ a: u32,
+ #[structopt(skip, long)]
+ b: u32,
+}
+
+fn main() {
+ let opt = Opt::from_args();
+ println!("{:?}", opt);
+}