[cmdline] Generate command option help text automatically
Generate the command option help text automatically from the list of defined options. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -60,8 +60,7 @@ static struct option_descriptor ping_opts[] = {
|
||||
|
||||
/** "ping" command descriptor */
|
||||
static struct command_descriptor ping_cmd =
|
||||
COMMAND_DESC ( struct ping_options, ping_opts, 1, 1,
|
||||
"[--size <size>] [--timeout <timeout>] <host>" );
|
||||
COMMAND_DESC ( struct ping_options, ping_opts, 1, 1, "<host>" );
|
||||
|
||||
/**
|
||||
* The "ping" command
|
||||
|
||||
Reference in New Issue
Block a user