From fe85fcb1772b61f13b20b7ea5290e2437a76190c Mon Sep 17 00:00:00 2001 From: Kevin K Date: Mon, 15 May 2017 18:34:10 -0400 Subject: [PATCH] docs(clap_app!): adds using the @group specifier to the macro docs Closes #932 --- src/macros.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/macros.rs b/src/macros.rs index 650042fbb42..853daaaab9b 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -549,6 +549,11 @@ macro_rules! app_from_crate { /// (@arg CONFIG: -c --config +takes_value "Sets a custom config file") /// (@arg INPUT: +required "Sets the input file to use") /// (@arg debug: -d ... "Sets the level of debugging information") +/// (@group difficulty => +/// (@arg hard: -h --hard "Sets hard mode") +/// (@arg normal: -n --normal "Sets normal mode") +/// (@arg easy: -e --easy "Sets easy mode") +/// ) /// (@subcommand test => /// (about: "controls testing features") /// (version: "1.3")