[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:
@@ -42,8 +42,7 @@ static struct option_descriptor show_opts[] = {};
|
||||
|
||||
/** "show" command descriptor */
|
||||
static struct command_descriptor show_cmd =
|
||||
COMMAND_DESC ( struct show_options, show_opts, 1, 1,
|
||||
"<setting>", "" );
|
||||
COMMAND_DESC ( struct show_options, show_opts, 1, 1, "<setting>" );
|
||||
|
||||
/**
|
||||
* "show" command
|
||||
@@ -88,7 +87,7 @@ static struct option_descriptor set_opts[] = {};
|
||||
/** "set" command descriptor */
|
||||
static struct command_descriptor set_cmd =
|
||||
COMMAND_DESC ( struct set_options, set_opts, 1, MAX_ARGUMENTS,
|
||||
"<setting> <value>", "" );
|
||||
"<setting> <value>" );
|
||||
|
||||
/**
|
||||
* "set" command
|
||||
@@ -146,8 +145,7 @@ static struct option_descriptor clear_opts[] = {};
|
||||
|
||||
/** "clear" command descriptor */
|
||||
static struct command_descriptor clear_cmd =
|
||||
COMMAND_DESC ( struct clear_options, clear_opts, 1, 1,
|
||||
"<setting>", "" );
|
||||
COMMAND_DESC ( struct clear_options, clear_opts, 1, 1, "<setting>" );
|
||||
|
||||
/**
|
||||
* "clear" command
|
||||
|
||||
Reference in New Issue
Block a user