diff options
Diffstat (limited to 'source/tools/acpihelp/ahmain.c')
| -rw-r--r-- | source/tools/acpihelp/ahmain.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/tools/acpihelp/ahmain.c b/source/tools/acpihelp/ahmain.c index 07e162c199b4..036ab7577aec 100644 --- a/source/tools/acpihelp/ahmain.c +++ b/source/tools/acpihelp/ahmain.c @@ -50,6 +50,9 @@ static void AhDisplayUsage ( void); +#define AH_UTILITY_NAME "ACPI Help Utility" +#define AH_SUPPORTED_OPTIONS "ehikmopsv" + /****************************************************************************** * @@ -66,6 +69,7 @@ AhDisplayUsage ( ACPI_USAGE_HEADER ("acpihelp <options> [NamePrefix | HexValue]"); ACPI_OPTION ("-h", "Display help"); + ACPI_OPTION ("-v", "Display version information"); printf ("\nACPI Names and Symbols:\n"); ACPI_OPTION ("-k [NamePrefix]", "Find/Display ASL non-operator keyword(s)"); @@ -104,7 +108,7 @@ main ( ACPI_DEBUG_INITIALIZE (); /* For debug version only */ - printf (ACPI_COMMON_SIGNON ("ACPI Help Utility")); + printf (ACPI_COMMON_SIGNON (AH_UTILITY_NAME)); DecodeType = AH_DECODE_DEFAULT; if (argc < 2) @@ -115,7 +119,7 @@ main ( /* Command line options */ - while ((j = AcpiGetopt (argc, argv, "ehikmops")) != EOF) switch (j) + while ((j = AcpiGetopt (argc, argv, AH_SUPPORTED_OPTIONS)) != EOF) switch (j) { case 'e': @@ -152,6 +156,10 @@ main ( DecodeType = AH_DECODE_ASL; break; + case 'v': /* -v: (Version): signon already emitted, just exit */ + + return (0); + case 'h': default: |
