소스 검색

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';