diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2010-12-10 21:20:51 +0100 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2010-12-17 21:28:40 +0100 |
commit | b8c4b0b8b5293a4809349323ea67db4ce27547cc (patch) | |
tree | 71eadf17bffae4c0b7e6ee4ccd5b41a9be92cfec | |
parent | 87bb89f4fa98035195d04d1a87693b0999afabf9 (diff) | |
download | barebox-b8c4b0b8b5293a4809349323ea67db4ce27547cc.tar.gz barebox-b8c4b0b8b5293a4809349323ea67db4ce27547cc.tar.xz |
doc: add documentation for 'sleep' command
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r-- | Documentation/commands.dox | 2 | ||||
-rw-r--r-- | commands/sleep.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/commands.dox b/Documentation/commands.dox index 93487438..65980029 100644 --- a/Documentation/commands.dox +++ b/Documentation/commands.dox @@ -93,7 +93,7 @@ available in @a Barebox: @li @subpage saveenv_command @li @subpage setenv_command @li @subpage sh -@li @subpage sleep +@li @subpage sleep_command @li @subpage source @li @subpage test @li @subpage timeout_command diff --git a/commands/sleep.c b/commands/sleep.c index 40a3a47e..972afd60 100644 --- a/commands/sleep.c +++ b/commands/sleep.c @@ -43,6 +43,11 @@ static int do_sleep(struct command *cmdtp, int argc, char *argv[]) return 0; } +BAREBOX_CMD_HELP_START(sleep) +BAREBOX_CMD_HELP_USAGE("sleep <n>\n") +BAREBOX_CMD_HELP_SHORT("Delay execution for <n> seconds.\n") +BAREBOX_CMD_HELP_END + BAREBOX_CMD_START(sleep) .cmd = do_sleep, .usage = "delay execution for n seconds", |