summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CommandLineArguments.cxx
diff options
context:
space:
mode:
authorUtkarsh Ayachit <utkarsh.ayachit@kitware.com>2006-12-21 14:52:01 (GMT)
committerUtkarsh Ayachit <utkarsh.ayachit@kitware.com>2006-12-21 14:52:01 (GMT)
commitfbfd05a308d3053a311175c3d6fd70c66a6410ec (patch)
treee9912464cd32773ef3fcdc968df7407ffda0004a /Source/kwsys/CommandLineArguments.cxx
parent87f5f6e2390c6f3a99ae20c9aeb4cb685e4e9c60 (diff)
downloadCMake-fbfd05a308d3053a311175c3d6fd70c66a6410ec.zip
CMake-fbfd05a308d3053a311175c3d6fd70c66a6410ec.tar.gz
CMake-fbfd05a308d3053a311175c3d6fd70c66a6410ec.tar.bz2
BUG: When a "wrong argument" was detected, we call the WrongArgument handler. If the handler returns success, the argument parsing should continue. Currently, it was stopping parsing immediately after the wrong argument was processed, irrespective of the WrongArgument handler status. Fixed that.
Diffstat (limited to 'Source/kwsys/CommandLineArguments.cxx')
-rw-r--r--Source/kwsys/CommandLineArguments.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx
index 5a550b5..da80853 100644
--- a/Source/kwsys/CommandLineArguments.cxx
+++ b/Source/kwsys/CommandLineArguments.cxx
@@ -306,7 +306,6 @@ int CommandLineArguments::Parse()
this->Internals->LastArgument --;
return 0;
}
- return 1;
}
else if ( this->StoreUnusedArgumentsFlag )
{