aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-05-25 16:49:16 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-05-26 16:27:57 -0300
commit48f7e2ae85aeb2d3a5273f05d4f7bcc54e0caac4 (patch)
treedf68021f3de807feb8ddce0f4dddf42722394d85
parent95b14c44b5950b6a389d4d6c29f361016ab3f4db (diff)
Implemented support to api-version.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index f5a254fa..30dd3788 100644
--- a/main.cpp
+++ b/main.cpp
@@ -86,6 +86,7 @@ void printUsage(const GeneratorList& generators)
generalOptions.insert("license-file=[licensefile]", "File used for copyright headers of generated files");
generalOptions.insert("version", "Output version information and exit");
generalOptions.insert("generatorSet", "generatorSet to be used. e.g. qtdoc");
+ generalOptions.insert("api-version", "Specify the supported api version used to generate the bindings");
printOptions(s, generalOptions);
foreach (Generator* generator, generators) {
@@ -179,6 +180,9 @@ int main(int argc, char *argv[])
if (args.contains("no-suppress-warnings"))
extractor.setSuppressWarnings(false);
+ if (args.contains("api-version"))
+ extractor.setApiVersion(args["api-version"].toDouble());
+
if (args.contains("typesystem-paths"))
extractor.addTypesystemSearchPath(args.value("typesystem-paths").split(PATH_SPLITTER));
if (!args.value("include-paths").isEmpty())