summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2010-12-10 21:17:44 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2010-12-17 21:28:40 +0100
commit87bb89f4fa98035195d04d1a87693b0999afabf9 (patch)
treecd17e9ebe335ed96154d846d666b31dd63cd2210
parentc87874130fbb49b93ef92573affac912d2beaf15 (diff)
downloadbarebox-87bb89f4fa98035195d04d1a87693b0999afabf9.tar.gz
barebox-87bb89f4fa98035195d04d1a87693b0999afabf9.tar.xz
doc: add documentation for 'true' command
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r--Documentation/commands.dox2
-rw-r--r--commands/true.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/commands.dox b/Documentation/commands.dox
index e25dda00..93487438 100644
--- a/Documentation/commands.dox
+++ b/Documentation/commands.dox
@@ -97,7 +97,7 @@ available in @a Barebox:
@li @subpage source
@li @subpage test
@li @subpage timeout_command
-@li @subpage true
+@li @subpage true_command
@li @subpage tftp_command
@li @subpage ubiattach_command
@li @subpage ubimkvol_command
diff --git a/commands/true.c b/commands/true.c
index 8c77dec2..d77a365a 100644
--- a/commands/true.c
+++ b/commands/true.c
@@ -29,6 +29,11 @@ static int do_true(struct command *cmdtp, int argc, char *argv[])
return 0;
}
+BAREBOX_CMD_HELP_START(true)
+BAREBOX_CMD_HELP_USAGE("true\n")
+BAREBOX_CMD_HELP_SHORT("Do nothing, successfully.\n")
+BAREBOX_CMD_HELP_END
+
BAREBOX_CMD_START(true)
.cmd = do_true,
.usage = "do nothing, successfully",