clipanion
Version:
Type-safe CLI library / framework with no runtime dependencies
20 lines (15 loc) • 431 B
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
var advanced_Command = require('../Command.js');
/**
* A command that prints the usage of all commands.
*
* Paths: `-h`, `--help`
*/
class HelpCommand extends advanced_Command.Command {
async execute() {
this.context.stdout.write(this.cli.usage());
}
}
HelpCommand.paths = [[`-h`], [`--help`]];
exports.HelpCommand = HelpCommand;
;