summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CommandLineArguments.hxx.in
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-14 19:02:27 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-14 19:02:27 (GMT)
commit9bc53f64434e807b5fdb9103995f82eddd16d6d7 (patch)
tree9895540ec0442e0502e69a3b919ed3666abedf9f /Source/kwsys/CommandLineArguments.hxx.in
parent71395c78cee2abe5cdfb7b27bb3a4f2610c87653 (diff)
downloadCMake-9bc53f64434e807b5fdb9103995f82eddd16d6d7.zip
CMake-9bc53f64434e807b5fdb9103995f82eddd16d6d7.tar.gz
CMake-9bc53f64434e807b5fdb9103995f82eddd16d6d7.tar.bz2
ENH: Add a way to get unused arguments and add a test
Diffstat (limited to 'Source/kwsys/CommandLineArguments.hxx.in')
-rw-r--r--Source/kwsys/CommandLineArguments.hxx.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/CommandLineArguments.hxx.in b/Source/kwsys/CommandLineArguments.hxx.in
index 070f95e..6fe7f99 100644
--- a/Source/kwsys/CommandLineArguments.hxx.in
+++ b/Source/kwsys/CommandLineArguments.hxx.in
@@ -205,6 +205,14 @@ public:
void DeleteRemainingArguments(int argc, char*** argv);
/**
+ * If StoreUnusedArguments is set to true, then all unknown arguments will be
+ * stored and the user can access the modified argc, argv without known
+ * arguments.
+ */
+ void StoreUnusedArguments(bool val) { this->StoreUnusedArgumentsFlag = val; }
+ void GetUnusedArguments(int* argc, char*** argv);
+
+ /**
* Return string containing help. If the argument is specified, only return
* help for that argument.
*/
@@ -261,6 +269,8 @@ protected:
kwsys_stl::string Help;
unsigned int LineLength;
+
+ bool StoreUnusedArgumentsFlag;
};
} // namespace @KWSYS_NAMESPACE@