[PATCH 20/21] doc: unify documentation for 'export'
Robert Schwebel
r.schwebel at pengutronix.de
Mon Nov 1 04:33:53 EDT 2010
Signed-off-by: Robert Schwebel <r.schwebel at pengutronix.de>
---
commands/export.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/commands/export.c b/commands/export.c
index 31259cc..ce8a61a 100644
--- a/commands/export.c
+++ b/commands/export.c
@@ -51,9 +51,10 @@ static int do_export(struct command *cmdtp, int argc, char *argv[])
return 0;
}
-static const __maybe_unused char cmd_export_help[] =
-"Usage: export <var>[=value]...\n"
-"export an environment variable to subsequently executed scripts\n";
+BAREBOX_CMD_HELP_START(export)
+BAREBOX_CMD_HELP_USAGE("export <var>[=value]")
+BAREBOX_CMD_HELP_SHORT("export an environment variable to subsequently executed scripts")
+BAREBOX_CMD_HELP_END
BAREBOX_CMD_START(export)
.cmd = do_export,
@@ -61,10 +62,3 @@ BAREBOX_CMD_START(export)
BAREBOX_CMD_HELP(cmd_export_help)
BAREBOX_CMD_END
-/**
- * @page export_command export: Export an environment variable
- *
- * Usage: export \<var>[=value]...
- *
- * Export an environment variable to subsequently executed scripts.
- */
--
1.7.2.3
More information about the barebox
mailing list