diff options
Diffstat (limited to 'examples/at_least_two.rs')
-rw-r--r-- | examples/at_least_two.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/at_least_two.rs b/examples/at_least_two.rs index 683db50..a4eb002 100644 --- a/examples/at_least_two.rs +++ b/examples/at_least_two.rs @@ -1,5 +1,20 @@ //! How to require presence of at least N values, //! like `val1 val2 ... valN ... valM`. +//! +//! Running this example with --help prints this message: +//! ----------------------------------------------------- +//! structopt 0.3.25 +//! +//! USAGE: +//! at_least_two <foos>... +//! +//! FLAGS: +//! -h, --help Prints help information +//! -V, --version Prints version information +//! +//! ARGS: +//! <foos>... +//! ----------------------------------------------------- use structopt::StructOpt; |