Help text generator for meow.
- Generates clean and styled help text
- Simplifies the usage of meow
$ npm install meow-help
const meowHelp = require("meow-help");
const meow = require("meow");
const foo = require(".");
const flags = {
rainbow: {
type: "boolean",
alias: "r",
description: "Include a rainbow."
}
}
const cli = meow(meowHelp(flags), {
flags: flags
});
foo(cli.input[0], cli.flags);
meowHelp(flags, description);
Returns a String
that can be passed as helpText
to meow.
Name | Type | Required | Description |
---|---|---|---|
flags | Object |
✅ | Flags object for meow, extended with descriptions. |
description | String |
❌ | Extra description text shown when --help is called. |
MIT © Maarten Brakkee