aboutsummaryrefslogtreecommitdiff
path: root/structopt/examples/after_help.rs
diff options
context:
space:
mode:
Diffstat (limited to 'structopt/examples/after_help.rs')
-rw-r--r--structopt/examples/after_help.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/structopt/examples/after_help.rs b/structopt/examples/after_help.rs
deleted file mode 100644
index db2845f..0000000
--- a/structopt/examples/after_help.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-//! How to append a postscript to the help message generated.
-
-use structopt::StructOpt;
-
-/// I am a program and I do things.
-///
-/// Sometimes they even work.
-#[derive(StructOpt, Debug)]
-#[structopt(after_help = "Beware `-d`, dragons be here")]
-struct Opt {
- /// Release the dragon.
- #[structopt(short)]
- dragon: bool,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}