diff options
author | Michael Brown <mcb30@ipxe.org> | 2011-03-04 12:14:51 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2011-03-04 12:18:51 +0000 |
commit | 7d5dcc92994dae75831453b8d7fff411f23d9126 (patch) | |
tree | 2f12b637301709393c2c0d24aca6e6a1222ce272 /src/core/parseopt.c | |
parent | 464cd1b3ce7e3214a3bbe5eb6f3889fa28fbb4b2 (diff) | |
download | ipxe-7d5dcc92994dae75831453b8d7fff411f23d9126.tar.gz |
[parseopt] Refer to online documentation for command help
The online documentation (e.g. http://ipxe.org/cmd/ifopen), though not
yet complete, is far more comprehensive than could be provided within
the iPXE binary. Save around 200 bytes (compressed) by removing the
command descriptions from the interactive help, and instead referring
users directly to the web page describing the relevant command.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/parseopt.c')
-rw-r--r-- | src/core/parseopt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/parseopt.c b/src/core/parseopt.c index f0a3e700..451ebaf5 100644 --- a/src/core/parseopt.c +++ b/src/core/parseopt.c @@ -132,7 +132,8 @@ int parse_image ( const char *text, struct image **image ) { * @v argv Argument list */ void print_usage ( struct command_descriptor *cmd, char **argv ) { - printf ( "Usage:\n\n %s %s\n", argv[0], cmd->usage_description ); + printf ( "Usage:\n\n %s %s\n\nSee http://ipxe.org/cmd/%s for further " + "information\n", argv[0], cmd->usage, argv[0] ); } /** |