mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 03:48:49 +00:00
Make "capp" print usage if more than one file argument is given
This commit is contained in:
1 parent
f3633c050b
commit
9ff73e5e63
1 file changed
+5
@@ -71,6 +71,11 @@ function gen(/*va_args*/)
|
||||
var args = ["capp gen"].concat(Array.prototype.slice.call(arguments));
|
||||
var options = parser.parse(args);
|
||||
|
||||
if (options.args.length > 1) {
|
||||
parser.printUsage(options);
|
||||
OS.exit(1);
|
||||
}
|
||||
|
||||
if (options.listTemplates) {
|
||||
listTemplates();
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user