mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +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:
@@ -226,9 +226,7 @@ static int ifconf_payload ( struct net_device *netdev,
|
||||
/** "ifconf" command descriptor */
|
||||
static struct ifcommon_command_descriptor ifconf_cmd =
|
||||
IFCOMMON_COMMAND_DESC ( struct ifconf_options, ifconf_opts,
|
||||
0, MAX_ARGUMENTS,
|
||||
"[--configurator <configurator>] "
|
||||
"[<interface>...]",
|
||||
0, MAX_ARGUMENTS, "[<interface>...]",
|
||||
ifconf_payload, 1 );
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user