mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-18 12:39:22 +00:00
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:
1 parent
5bd07716eb
commit
f21dcb8265
2 files changed
+8
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user