diff options
author | James Ko <jamesqko@gmail.com> | 2016-05-17 20:16:32 -0400 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-05-17 17:16:32 -0700 |
commit | f4fe31a03dca4ede37bd6451d0c81365ee9ee7e4 (patch) | |
tree | 818843bcc1be9de337992690a17c5c3c0ab47031 /src/coreclr | |
parent | c96cd5643e4eb9bdc1e59f4b651baaf49bc942b8 (diff) | |
download | coreclr-f4fe31a03dca4ede37bd6451d0c81365ee9ee7e4.tar.gz coreclr-f4fe31a03dca4ede37bd6451d0c81365ee9ee7e4.tar.bz2 coreclr-f4fe31a03dca4ede37bd6451d0c81365ee9ee7e4.zip |
Add more help options to corerun (#4973)
Diffstat (limited to 'src/coreclr')
-rw-r--r-- | src/coreclr/hosts/corerun/corerun.cpp | 2 | ||||
-rw-r--r-- | src/coreclr/hosts/unixcorerun/corerun.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/hosts/corerun/corerun.cpp b/src/coreclr/hosts/corerun/corerun.cpp index d037fe80d7..e7ddab21e9 100644 --- a/src/coreclr/hosts/corerun/corerun.cpp +++ b/src/coreclr/hosts/corerun/corerun.cpp @@ -657,7 +657,7 @@ int __cdecl wmain(const int argc, const wchar_t* argv[]) } else if ( stringsEqual(arg, W("/d")) || stringsEqual(arg, W("-d")) ) { waitForDebugger = true; return true; - } else if ( stringsEqual(arg, W("/?")) || stringsEqual(arg, W("-?")) ) { + } else if ( stringsEqual(arg, W("/?")) || stringsEqual(arg, W("-?")) || stringsEqual(arg, W("-h")) || stringsEqual(arg, W("--help")) ) { helpRequested = true; return true; } else { diff --git a/src/coreclr/hosts/unixcorerun/corerun.cpp b/src/coreclr/hosts/unixcorerun/corerun.cpp index 7a020a42dc..da886d4338 100644 --- a/src/coreclr/hosts/unixcorerun/corerun.cpp +++ b/src/coreclr/hosts/unixcorerun/corerun.cpp @@ -56,7 +56,7 @@ bool ParseArguments( break; } } - else if (strcmp(argv[i], "--help") == 0) + else if (strcmp(argv[i], "-?") == 0 || strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) { DisplayUsage(); break; |