fix(cli): disable help subcommand, -h, --help are enough

This commit is contained in:
Andrew Hlynskyi 2021-06-23 11:16:41 +03:00
parent 1220ec3852
commit 650ee94800

View file

@ -41,6 +41,7 @@ fn run() -> Result<()> {
.author("Max Brunsfeld <maxbrunsfeld@gmail.com>")
.about("Generates and tests parsers")
.global_setting(AppSettings::ColoredHelp)
.global_setting(AppSettings::DisableHelpSubcommand)
.subcommand(SubCommand::with_name("init-config").about("Generate a default config file"))
.subcommand(
SubCommand::with_name("generate")