From 43eba2f555e2a2ed0fbedeeda73dd1720437fd97 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 7 Nov 2013 17:00:51 +0000 Subject: [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 --- src/arch/i386/hci/commands/pxe_cmd.c | 2 +- src/arch/x86/hci/commands/cpuid_cmd.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/arch') diff --git a/src/arch/i386/hci/commands/pxe_cmd.c b/src/arch/i386/hci/commands/pxe_cmd.c index c7cdb07f8..523724ab0 100644 --- a/src/arch/i386/hci/commands/pxe_cmd.c +++ b/src/arch/i386/hci/commands/pxe_cmd.c @@ -78,7 +78,7 @@ static struct option_descriptor stoppxe_opts[] = {}; /** "stoppxe" command descriptor */ static struct command_descriptor stoppxe_cmd = - COMMAND_DESC ( struct stoppxe_options, stoppxe_opts, 0, 0, "" ); + COMMAND_DESC ( struct stoppxe_options, stoppxe_opts, 0, 0, NULL ); /** * The "stoppxe" command diff --git a/src/arch/x86/hci/commands/cpuid_cmd.c b/src/arch/x86/hci/commands/cpuid_cmd.c index 981143308..c4e35d179 100644 --- a/src/arch/x86/hci/commands/cpuid_cmd.c +++ b/src/arch/x86/hci/commands/cpuid_cmd.c @@ -54,8 +54,7 @@ static struct option_descriptor cpuid_opts[] = { /** "cpuid" command descriptor */ static struct command_descriptor cpuid_cmd = - COMMAND_DESC ( struct cpuid_options, cpuid_opts, 1, 1, - "[--ext] [--ecx] " ); + COMMAND_DESC ( struct cpuid_options, cpuid_opts, 1, 1, "" ); /** * The "cpuid" command -- cgit v1.2.3-55-g7522