mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 01:22: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:
@@ -87,8 +87,7 @@ int ifcommon_exec ( int argc, char **argv,
|
||||
/** "ifopen" command descriptor */
|
||||
static struct command_descriptor ifopen_cmd =
|
||||
COMMAND_DESC ( struct ifcommon_options, ifcommon_opts, 0, MAX_ARGUMENTS,
|
||||
"[<interface>...]",
|
||||
"Open network interface(s)" );
|
||||
"[<interface>...]" );
|
||||
|
||||
/**
|
||||
* "ifopen" payload
|
||||
@@ -114,8 +113,7 @@ static int ifopen_exec ( int argc, char **argv ) {
|
||||
/** "ifclose" command descriptor */
|
||||
static struct command_descriptor ifclose_cmd =
|
||||
COMMAND_DESC ( struct ifcommon_options, ifcommon_opts, 0, MAX_ARGUMENTS,
|
||||
"[<interface>...]",
|
||||
"Close network interface(s)" );
|
||||
"[<interface>...]" );
|
||||
|
||||
/**
|
||||
* "ifclose" payload
|
||||
@@ -142,8 +140,7 @@ static int ifclose_exec ( int argc, char **argv ) {
|
||||
/** "ifstat" command descriptor */
|
||||
static struct command_descriptor ifstat_cmd =
|
||||
COMMAND_DESC ( struct ifcommon_options, ifcommon_opts, 0, MAX_ARGUMENTS,
|
||||
"[<interface>...]",
|
||||
"Show network interface(s)" );
|
||||
"[<interface>...]" );
|
||||
|
||||
/**
|
||||
* "ifstat" payload
|
||||
|
||||
Reference in New Issue
Block a user