@types: added commander types, removed typings commander types

This commit is contained in:
sanex3339
2016-07-19 11:12:33 +03:00
parent f4a655e067
commit fb9c825e34
10 changed files with 98 additions and 513 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import * as commander from 'commander';
import * as path from 'path';
import { Command } from 'commander';
import { IObfuscationResult } from "../interfaces/IObfuscationResult";
import { IObfuscatorOptions } from "../interfaces/IObfuscatorOptions";
@@ -119,7 +119,7 @@ export class JavaScriptObfuscatorCLI {
}
private configureCommands (): void {
this.commands = new Command()
this.commands = new commander.Command()
.version(JavaScriptObfuscatorCLI.getBuildVersion(), '-v, --version')
.usage('<inputPath> [options]')
.option('-o, --output <path>', 'Output path for obfuscated code')