[PECOFF] Fix /? option and add a test for the flag.

llvm-svn: 191320
This commit is contained in:
Rui Ueyama 2013-09-24 17:59:30 +00:00
parent 01df817a33
commit 27c88dab08
2 changed files with 5 additions and 1 deletions

View File

@ -62,7 +62,7 @@ defm dynamicbase : B<"dynamicbase",
"Disable address space layout randomization">;
def help : F<"help">;
def help_q : F<"?">, Alias<help>;
def help_q : Flag<["/?", "-?"], "">, Alias<help>;
def DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>;

View File

@ -0,0 +1,4 @@
# RUN: not lld -flavor link /help | FileCheck %s
# RUN: not lld -flavor link '/?' | FileCheck %s
CHECK: USAGE