diff options
-rw-r--r-- | source/common/getopt.c | 2 | ||||
-rw-r--r-- | source/compiler/asloptions.c | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/source/common/getopt.c b/source/common/getopt.c index 15eadc259..07e98a92e 100644 --- a/source/common/getopt.c +++ b/source/common/getopt.c @@ -173,7 +173,7 @@ AcpiGetoptArgument ( } else if (++AcpiGbl_Optind >= argc) { - ACPI_OPTION_ERROR ("Option requires an argument: -", 'v'); + ACPI_OPTION_ERROR ("\nOption requires an argument", 0); CurrentCharPtr = 1; return (-1); diff --git a/source/compiler/asloptions.c b/source/compiler/asloptions.c index 651cd9d6e..35c386eac 100644 --- a/source/compiler/asloptions.c +++ b/source/compiler/asloptions.c @@ -347,11 +347,25 @@ AslDoOptions ( { case '^': + /* Get the required argument */ + + if (AcpiGetoptArgument (argc, argv)) + { + return (-1); + } + Gbl_DoCompile = FALSE; break; case 'a': + /* Get the required argument */ + + if (AcpiGetoptArgument (argc, argv)) + { + return (-1); + } + Gbl_DoCompile = FALSE; Gbl_DisassembleAll = TRUE; break; |