Index: tools/js2c.py |
diff --git a/tools/js2c.py b/tools/js2c.py |
index c2805373796f0c58f88cd2c63a2e25a6ab97637f..326e07bf0a4150eb25190aee0e2ed38df7e5d1a8 100755 |
--- a/tools/js2c.py |
+++ b/tools/js2c.py |
@@ -583,7 +583,8 @@ def main(): |
help="file to write the startup blob to.") |
parser.add_option("--js", |
help="writes a JS file output instead of a C file", |
- action="store_true") |
+ action="store_true", default=False, dest='js') |
+ parser.add_option("--nojs", action="store_false", default=False, dest='js') |
parser.set_usage("""js2c out.cc type sources.js ... |
out.cc: C code to be generated. |
type: type parameter for NativesCollection template. |