Permalink
Browse files

Correctly interpret options beginning with '-'. Closes #14.

1 parent 517b95e commit cf6bd1eaaa926c8618f981a6a50ea98cc8b3eb1e @candera committed Dec 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/COptions.h
View
@@ -127,7 +127,7 @@ class COptions
CString arg(tokens[i].c_str());
arg.MakeLower();
- if (options._command.empty() && Utilities::StartsWith(arg, TEXT("/")) || Utilities::StartsWith(arg, TEXT("-")))
+ if (options._command.empty() && (Utilities::StartsWith(arg, TEXT("/")) || Utilities::StartsWith(arg, TEXT("-"))))
{
arg = arg.Mid(1);

0 comments on commit cf6bd1e

Please sign in to comment.