Skip to content
Browse files

Added option to suppress warnings

  • Loading branch information...
1 parent 22abed9 commit c597ee0d55a59cae9e814caf9e016421c68b60f0 @rinon rinon committed Jul 9, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/ljc.js
View
7 src/ljc.js
@@ -117,7 +117,8 @@
["0", "simple-log", false, "Log simple messages. No colors and snippets."],
["t", "trace", false, "Trace compiler execution"],
["o", "output", "", "Output file name"],
- ["h", "help", false, "Print this message"]
+ ["h", "help", false, "Print this message"],
+ ["w", "nowarn", false, "Inhibit all warning messages"]
]);
var p = optparser.parse(argv);
@@ -174,6 +175,10 @@
}
}
+ if(options.nowarn) {
+ options.warn = false;
+ }
+
var logger = new util.Logger("ljc", logName, source, options);
var code;

0 comments on commit c597ee0

Please sign in to comment.
Something went wrong with that request. Please try again.