mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
19 lines
376 B
Rust
19 lines
376 B
Rust
//! How to append a postscript to the help message generated.
|
|
|
|
use clap::Clap;
|
|
|
|
/// I am a program and I do things.
|
|
///
|
|
/// Sometimes they even work.
|
|
#[derive(Clap, Debug)]
|
|
#[clap(after_help = "Beware `-d`, dragons be here")]
|
|
struct Opt {
|
|
/// Release the dragon.
|
|
#[clap(short)]
|
|
dragon: bool,
|
|
}
|
|
|
|
fn main() {
|
|
let opt = Opt::parse();
|
|
println!("{:?}", opt);
|
|
}
|