[PATCH 18/34] doc: add documentation for 'pwd' command

Robert Schwebel r.schwebel at pengutronix.de
Wed Dec 15 06:51:32 EST 2010


Signed-off-by: Robert Schwebel <r.schwebel at pengutronix.de>
---
 Documentation/commands.dox |    2 +-
 commands/pwd.c             |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Documentation/commands.dox b/Documentation/commands.dox
index 887c58f..cf91a49 100644
--- a/Documentation/commands.dox
+++ b/Documentation/commands.dox
@@ -83,7 +83,7 @@ available in @a Barebox:
 @li @subpage ping
 @li @subpage printenv_command
 @li @subpage protect_command
- at li @subpage pwd
+ at li @subpage pwd_command
 @li @subpage readline_command
 @li @subpage reset
 @li @subpage rarpboot
diff --git a/commands/pwd.c b/commands/pwd.c
index d51fa1a..2d5afb5 100644
--- a/commands/pwd.c
+++ b/commands/pwd.c
@@ -29,6 +29,11 @@ static int do_pwd(struct command *cmdtp, int argc, char *argv[])
 	return 0;
 }
 
+BAREBOX_CMD_HELP_START(pwd)
+BAREBOX_CMD_HELP_USAGE("pwd\n")
+BAREBOX_CMD_HELP_SHORT("Print working directory.\n")
+BAREBOX_CMD_HELP_END
+
 BAREBOX_CMD_START(pwd)
 	.cmd		= do_pwd,
 	.usage		= "print working directory",
-- 
1.7.2.3




More information about the barebox mailing list