瀏覽代碼

bin script refactoring

sanex3339 9 年之前
父節點
當前提交
f08537763c
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      bin/javascript-obfuscator.js

+ 1 - 3
bin/javascript-obfuscator.js

@@ -22,8 +22,6 @@ var commands = require('commander'),
 configureProcess();
 configureCommands();
 
-commands.parse(process.argv);
-
 if (!isDataExist()) {
     commands.outputHelp();
 
@@ -60,7 +58,7 @@ function configureCommands () {
         .option('--unicodeArray <boolean>', 'Disables gathering of all literal strings into an array and replacing every literal string with an array call', parseBoolean)
         .option('--unicodeArrayThreshold <number>', 'The probability that the literal string will be inserted into unicodeArray (Default: 0.8, Min: 0, Max: 1)', parseFloat)
         .option('--wrapUnicodeArrayCalls <boolean>', 'Disables usage of special access function instead of direct array call', parseBoolean)
-    ;
+        .parse(process.argv);
 
     commands.on('--help', function () {
         var isWindows = process.platform == 'win32';