aboutsummaryrefslogtreecommitdiff
path: root/structopt/examples/no_version.rs
diff options
context:
space:
mode:
Diffstat (limited to 'structopt/examples/no_version.rs')
-rw-r--r--structopt/examples/no_version.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/structopt/examples/no_version.rs b/structopt/examples/no_version.rs
deleted file mode 100644
index a542ec1..0000000
--- a/structopt/examples/no_version.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-//! How to completely remove version.
-
-use structopt::clap::AppSettings;
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(
- name = "no_version",
- no_version,
- global_settings = &[AppSettings::DisableVersion]
-)]
-struct Opt {}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}