ソースを参照

update of available values

sanex3339 8 年 前
コミット
8d4898cb03
2 ファイル変更2 行追加2 行削除
  1. 1 1
      README.md
  2. 1 1
      src/cli/JavaScriptObfuscatorCLI.ts

+ 1 - 1
README.md

@@ -148,7 +148,7 @@ Following options available for the JS Obfuscator:
     --sourceMapFileName <string>
     --sourceMapMode <string> [inline, separate]
     --unicodeArray <boolean>
-    --unicodeArrayEncoding <boolean|string> ['base64', 'rc4']
+    --unicodeArrayEncoding <boolean|string> [true, false, base64, rc4]
     --unicodeArrayThreshold <number>
 ```
 

+ 1 - 1
src/cli/JavaScriptObfuscatorCLI.ts

@@ -161,7 +161,7 @@ export class JavaScriptObfuscatorCLI {
                 JavaScriptObfuscatorCLI.parseSourceMapMode
             )
             .option('--unicodeArray <boolean>', 'Disables gathering of all literal strings into an array and replacing every literal string with an array call', JavaScriptObfuscatorCLI.parseBoolean)
-            .option('--unicodeArrayEncoding <boolean|string> [base64, rc4]', 'All literals in Unicode array become encoded in using base64 or rc4 (this option can slightly slow down your code speed', JavaScriptObfuscatorCLI.parseUnicodeArrayEncoding)
+            .option('--unicodeArrayEncoding <boolean|string> [true, false, base64, rc4]', 'All literals in Unicode array become encoded in using base64 or rc4 (this option can slightly slow down your code speed', JavaScriptObfuscatorCLI.parseUnicodeArrayEncoding)
             .option('--unicodeArrayThreshold <number>', 'The probability that the literal string will be inserted into unicodeArray (Default: 0.8, Min: 0, Max: 1)', parseFloat)
             .parse(this.rawArguments);