blob: db2845fe88fcd3b10bbf729752aa1389a78f2b69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//! 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);
}
|