summaryrefslogtreecommitdiffstats
path: root/commands/state.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-04-16 15:15:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-17 07:31:35 +0200
commit4f315f3670dc742153b60cda4d5703b706bb6cf8 (patch)
tree126ab5d5b4649329f0e49e960c6b3296df5380c7 /commands/state.c
parent9e69a04222ee88c51bd5ca4f802b5fa5ad42b0f8 (diff)
downloadbarebox-4f315f3670dc742153b60cda4d5703b706bb6cf8.tar.gz
command: state: harmonize in-barebox documentation
According to this patch by Holger Schurig: f1f532084a6e commands: harmonize in-barebox documentation Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/state.c')
-rw-r--r--commands/state.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/commands/state.c b/commands/state.c
index 82c29d0..59d1eb8 100644
--- a/commands/state.c
+++ b/commands/state.c
@@ -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