New: Added option --parser/-p to the command objj

Previously it wasn't possible to specify a custom parser for the command objj. This is needed for xCodeCapp
This commit is contained in:
Alexandre Wilhelm committed 2014-11-03 15:25:47 -08:00
1 parent 5bd07716eb
commit f21dcb8265
2 files changed
+8 -1

No files matched your search

+7 -1
View File
@@ -90,10 +90,16 @@ exports.run = function(args)
print("Usage (objj): " + args[0] + " [options] [--] files...");
print(" -v, --version print the current version of objj");
print(" -I, --objj-include-paths specify the framework to be used")
print(" -h, --help print this help");
print(" -p, --parser specify to use a specific parser")
return;
}
if (argv[0] === "-p" || argv[0] === "--parser")
{
argv.shift();
optionalParserUsed = true;
}
while (argv.length && argv[0] == "-I" || argv[0] == "--objj-include-paths")
{
argv.shift();
@@ -71,6 +71,7 @@
{
launchPath = self.xcc.executablePaths[@"objj"];
arguments = @[
@"--parser",
self.xcc.parserPath,
self.projectPath,
self.sourcePath