clipanion
Version:
Type-safe CLI library / framework with no runtime dependencies
16 lines (13 loc) • 317 B
JavaScript
import { Command } from '../Command.mjs';
/**
* A command that prints the usage of all commands.
*
* Paths: `-h`, `--help`
*/
class HelpCommand extends Command {
async execute() {
this.context.stdout.write(this.cli.usage());
}
}
HelpCommand.paths = [[`-h`], [`--help`]];
export { HelpCommand };