blob: db2845fe88fcd3b10bbf729752aa1389a78f2b69 [file] [log] [blame]
Matthew Maurer32e76692020-06-02 11:15:15 -07001//! How to append a postscript to the help message generated.
2
3use 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")]
10struct Opt {
11 /// Release the dragon.
12 #[structopt(short)]
13 dragon: bool,
14}
15
16fn main() {
17 let opt = Opt::from_args();
18 println!("{:?}", opt);
19}