• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //! How to append a postscript to the help message generated.
2 
3 use structopt::StructOpt;
4 
5 /// I am a program and I do things.
6 ///
7 /// Sometimes they even work.
8 #[derive(StructOpt, Debug)]
9 #[structopt(after_help = "Beware `-d`, dragons be here")]
10 struct Opt {
11     /// Release the dragon.
12     #[structopt(short)]
13     dragon: bool,
14 }
15 
main()16 fn main() {
17     let opt = Opt::from_args();
18     println!("{:?}", opt);
19 }
20