summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2010-12-10 22:16:34 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2010-12-17 21:28:41 +0100
commit6bb6207d57376bffdd159538dbfee0c42d7e686d (patch)
tree1539249876ce1873cf7ec7e638eab82dd9f9b3f7
parent36631a8c16996605397cf02f36850af1a95700dd (diff)
downloadbarebox-6bb6207d57376bffdd159538dbfee0c42d7e686d.tar.gz
barebox-6bb6207d57376bffdd159538dbfee0c42d7e686d.tar.xz
doc: add documentation for 'pwd' command
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r--Documentation/commands.dox2
-rw-r--r--commands/pwd.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/commands.dox b/Documentation/commands.dox
index 887c58f8..cf91a498 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
-@li @subpage pwd
+@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 d51fa1a1..2d5afb59 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",