extern crate clap; extern crate regex; include!("../clap-test.rs"); use clap::{App, AppSettings, SubCommand, ErrorKind, Arg}; static HELP: &'static str = "clap-test v1.4.8 Kevin K. tests clap library USAGE: clap-test [FLAGS] [OPTIONS] [ARGS] [SUBCOMMAND] FLAGS: -f, --flag tests flags -F tests flags with exclusions -h, --help Prints help information -V, --version Prints version information OPTIONS: -O, --Option specific vals [values: fast, slow] --long-option-2 tests long options with exclusions --maxvals3 ... Tests 3 max vals --minvals2 ... Tests 2 min vals --multvals Tests mutliple values, not mult occs --multvalsmo Tests mutliple values, and mult occs -o, --option ... tests options ARGS: tests positionals tests positionals with exclusions ... tests specific values [values: vi, emacs] SUBCOMMANDS: help Prints this message or the help of the given subcommand(s) subcmd tests subcommands"; static AFTER_HELP: &'static str = "some text that comes before the help clap-test v1.4.8 tests clap library USAGE: clap-test FLAGS: -h, --help Prints help information -V, --version Prints version information some text that comes after the help"; static SC_HELP: &'static str = "clap-test-subcmd 0.1 Kevin K. tests subcommands USAGE: clap-test subcmd [FLAGS] [OPTIONS] [--] [scpositional] FLAGS: -f, --flag tests flags -h, --help Prints help information -V, --version Prints version information OPTIONS: -o, --option ... tests options ARGS: tests positionals"; // Using number_of_values(1) with multiple(true) misaligns help message static ISSUE_760: &'static str = "ctest 0.1 USAGE: ctest [OPTIONS] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: -O, --opt tests options -o, --option