hello-help
boilerplate from modern-npm-package
Get Started
π¦ Hello Help β¨
$ npx hello-help
$ npx hello-help --help
- simple code example at:
example/cli.ts
import { HelloHelp, helloHelpCli } from "hello-help";
const helloHelp = new HelloHelp(
"π¦ hello-help β¨",
"print your --help option easy",
{
hello: {
optionName: "hello",
description: "nice to say hello to you π",
},
heart: {
optionName: "heart",
shortenOptionName: "ht",
description: "need a heart? π©·",
},
}
);
helloHelpCli(helloHelp);
A. command with no --help option
π¦ hello-help β¨
print your --help option easy
B. command with --help option
π¦ hello-help β¨ options
--hello: nice to say hello to you π
--heart, -ht: need a heart? π©·