mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Added ability to specify the path to the input file after specifying the obfuscator options
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/904
This commit is contained in:
@@ -137,12 +137,12 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
|
||||
}
|
||||
|
||||
public initialize (): void {
|
||||
this.inputPath = path.normalize(this.arguments[0] || '');
|
||||
this.commands = <commander.CommanderStatic>(new commander.Command());
|
||||
|
||||
this.configureCommands();
|
||||
this.configureHelp();
|
||||
|
||||
this.inputPath = path.normalize(this.commands.args[0] || '');
|
||||
this.inputCLIOptions = JavaScriptObfuscatorCLI.buildOptions(this.commands.opts());
|
||||
this.sourceCodeReader = new SourceCodeReader(
|
||||
this.inputPath,
|
||||
|
||||
Reference in New Issue
Block a user