mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 19:38:37 +03:00
[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>
This commit is contained in:
@@ -45,7 +45,7 @@ static struct option_descriptor time_opts[] = {};
|
||||
/** "time" command descriptor */
|
||||
static struct command_descriptor time_cmd =
|
||||
COMMAND_DESC ( struct time_options, time_opts, 1, MAX_ARGUMENTS,
|
||||
"<command>", "Time a command" );
|
||||
"<command>" );
|
||||
|
||||
/**
|
||||
* "time" command
|
||||
@@ -87,8 +87,7 @@ static struct option_descriptor sleep_opts[] = {};
|
||||
|
||||
/** "sleep" command descriptor */
|
||||
static struct command_descriptor sleep_cmd =
|
||||
COMMAND_DESC ( struct sleep_options, sleep_opts, 1, 1,
|
||||
"<seconds>", "Sleep for <seconds> seconds" );
|
||||
COMMAND_DESC ( struct sleep_options, sleep_opts, 1, 1, "<seconds>" );
|
||||
|
||||
/**
|
||||
* "sleep" command
|
||||
|
||||
Reference in New Issue
Block a user