diff --git a/src/lib/command.ts b/src/lib/command.ts index 533a7301c..d822297ac 100644 --- a/src/lib/command.ts +++ b/src/lib/command.ts @@ -45,7 +45,7 @@ class BaseCommand { return this.name; } - protected getUsage(): any { + public getUsage(): any { return this.usage; } } @@ -105,7 +105,7 @@ const registry = CommandRegistry.getInstance(); registry.registerCommand( new ExampleCommand() ); for ( const [ key, command ] of registry.getCommands() ) { - console.log( `${key}`, command.getUsage() ); + console.log( `${ key }`, command.getUsage() ); } registry.invokeCommand( 'example', 'arg1', 'arg2', { named: 'arg' } );