From 7d5dcc92994dae75831453b8d7fff411f23d9126 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 4 Mar 2011 12:14:51 +0000 Subject: [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 --- src/hci/commands/image_cmd.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'src/hci/commands/image_cmd.c') diff --git a/src/hci/commands/image_cmd.c b/src/hci/commands/image_cmd.c index 66002226..a008baa6 100644 --- a/src/hci/commands/image_cmd.c +++ b/src/hci/commands/image_cmd.c @@ -84,20 +84,17 @@ static struct option_descriptor imgfetch_opts[] = { /** "imgfetch" command descriptor */ static struct command_descriptor imgfetch_cmd = COMMAND_DESC ( struct imgfetch_options, imgfetch_opts, 1, MAX_ARGUMENTS, - "[--name ] [...]", - "Fetch image" ); + "[--name ] [...]" ); /** "kernel" command descriptor */ static struct command_descriptor kernel_cmd = COMMAND_DESC ( struct imgfetch_options, imgfetch_opts, 1, MAX_ARGUMENTS, - "[--name ] [...]", - "Fetch and load image" ); + "[--name ] [...]" ); /** "chain" command descriptor */ static struct command_descriptor chain_cmd = COMMAND_DESC ( struct imgfetch_options, imgfetch_opts, 1, MAX_ARGUMENTS, - "[--name ] [...]", - "Fetch and execute image" ); + "[--name ] [...]" ); /** * The "imgfetch" and friends command body @@ -200,8 +197,7 @@ static struct option_descriptor imgload_opts[] = {}; /** "imgload" command descriptor */ static struct command_descriptor imgload_cmd = - COMMAND_DESC ( struct imgload_options, imgload_opts, 1, 1, - "", "Load image" ); + COMMAND_DESC ( struct imgload_options, imgload_opts, 1, 1, "" ); /** * The "imgload" command @@ -242,8 +238,7 @@ static struct option_descriptor imgargs_opts[] = {}; /** "imgargs" command descriptor */ static struct command_descriptor imgargs_cmd = COMMAND_DESC ( struct imgargs_options, imgargs_opts, 1, MAX_ARGUMENTS, - " [...]", - "Set arguments for image" ); + " [...]" ); /** * The "imgargs" command body @@ -282,7 +277,7 @@ static struct option_descriptor imgexec_opts[] = {}; /** "imgexec" command descriptor */ static struct command_descriptor imgexec_cmd = COMMAND_DESC ( struct imgexec_options, imgexec_opts, 0, 1, - "[]", "Execute image" ); + "[]" ); /** * The "imgexec" command @@ -330,8 +325,7 @@ static struct option_descriptor imgstat_opts[] = {}; /** "imgstat" command descriptor */ static struct command_descriptor imgstat_cmd = - COMMAND_DESC ( struct imgstat_options, imgstat_opts, 0, 0, - "", "List images" ); + COMMAND_DESC ( struct imgstat_options, imgstat_opts, 0, 0, "" ); /** * The "imgstat" command @@ -366,7 +360,7 @@ static struct option_descriptor imgfree_opts[] = {}; /** "imgfree" command descriptor */ static struct command_descriptor imgfree_cmd = COMMAND_DESC ( struct imgfree_options, imgfree_opts, 0, 1, - "[]", "Free image(s)" ); + "[]" ); /** * The "imgfree" command -- cgit v1.2.3-55-g7522