9
0
Fork 0

command: state: harmonize in-barebox documentation

According to this patch by Holger Schurig:

    f1f532084a commands: harmonize in-barebox documentation

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2015-04-16 15:15:22 +02:00 committed by Sascha Hauer
parent 9e69a04222
commit 4f315f3670
1 changed files with 9 additions and 7 deletions

View File

@ -62,16 +62,18 @@ static int do_state(int argc, char *argv[])
return ret;
}
static const __maybe_unused char cmd_state_help[] =
"Usage: state [OPTIONS] [STATENAME]\n"
"\n"
"options:\n"
"-s save state\n"
"-l load state\n";
BAREBOX_CMD_HELP_START(state)
BAREBOX_CMD_HELP_TEXT("Usage: state [OPTIONS] [STATENAME]")
BAREBOX_CMD_HELP_TEXT("")
BAREBOX_CMD_HELP_TEXT("options:")
BAREBOX_CMD_HELP_OPT ("-s", "save state")
BAREBOX_CMD_HELP_OPT ("-l", "load state")
BAREBOX_CMD_HELP_END
BAREBOX_CMD_START(state)
.cmd = do_state,
BAREBOX_CMD_DESC("handle state information")
BAREBOX_CMD_DESC("load and save state information")
BAREBOX_CMD_OPTS("[-sl] [STATENAME]")
BAREBOX_CMD_GROUP(CMD_GRP_MISC)
BAREBOX_CMD_HELP(cmd_state_help)
BAREBOX_CMD_END