mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 22:08:48 +03:00
[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:
@@ -106,7 +106,7 @@ static struct option_descriptor fcstat_opts[] = {};
|
||||
|
||||
/** "fcstat" command descriptor */
|
||||
static struct command_descriptor fcstat_cmd =
|
||||
COMMAND_DESC ( struct fcstat_options, fcstat_opts, 0, 0, "" );
|
||||
COMMAND_DESC ( struct fcstat_options, fcstat_opts, 0, 0, NULL );
|
||||
|
||||
/**
|
||||
* The "fcstat" command
|
||||
@@ -151,8 +151,7 @@ static struct option_descriptor fcels_opts[] = {
|
||||
|
||||
/** "fcels" command descriptor */
|
||||
static struct command_descriptor fcels_cmd =
|
||||
COMMAND_DESC ( struct fcels_options, fcels_opts, 1, 1,
|
||||
"[--port <port>] [--id <peer port id>] <request>" );
|
||||
COMMAND_DESC ( struct fcels_options, fcels_opts, 1, 1, "<request>" );
|
||||
|
||||
/**
|
||||
* The "fcels" command
|
||||
|
||||
Reference in New Issue
Block a user