Closed jackdorland closed 4 years ago
Use after_help
:
#[derive(StructOpt)]
#[structopt(
after_help =
"PIPING:
Need a quick link to the output of a command?
You can pipe any command's output directly into `space`, like this:
$ echo \"foo, bar\" | space"
)]
struct Opts {}
Hello! 👋
I'm trying to get my program to have an extra field in
-h
/--help
, but I can't seem to do it with current StructOpt.Currently, my help looks like this:
I'd like to append something to this that says:
But I can't figure out a way to do this without just using
clap
withoutStructOpt