cac
cac copied to clipboard
Simple yet powerful framework for building command-line apps.
## Issue Type - [ ] Bug Report - [x] Feature Request - [ ] Other ## Expected ```js cli .command('format [...files]', 'Format files using Prettier') .example("format 'src/**/*.{js,ts,json}'") .alias(['fmt', 'fromat',...
## Issue Type - [ ] Bug Report - [X] Feature Request - [ ] Other ## Expected ```bash $ command subcommand --help Subcommand is used to...
## Issue Type - [ ] Bug Report - [x] Feature Request - [ ] Other ## Expected * That when I manually call `cli.outputHelp()`, that I can then set...
```bash > node cli.js --fo > invalid cli flag `--fo`, did you mean `--foo`? ```
When we have field `choices` of `option`, we have to give flag one precise value. ```js const cac = require('../') const cli = cac() cli.command('a', { desc: 'command a', }).option('foo',...
Export help message in markdown format so you can embed it into your README. Like this:
## Issue Type - [ ] Bug Report - [x] Feature Request - [ ] Other ## Expected ## Actual ## Possible Solutions ## Info - CAC version: - Reproduction...
## Issue Type - [ ] Bug Report - [ ] Feature Request - [x] Other Hi. I am attempting to create my first Node.js CLI program. ```ts const cli...