sade
sade copied to clipboard
Smooth (CLI) Operator 🎶
The error utility is used internally for cases like this: ``` $ node index.js --abc ERROR Invalid option: --abc Run `$ my-cli-app --help` for more info. ``` https://github.com/lukeed/sade/blob/master/src/utils.js#L79-L84 But even...
If I define two commands and mark one default, the returned help text via `cli.js --help` shows the arguments as if no command was called even though I can supply...
Sade is great, thanks! I noticed that if my async handlers error out, then node exits with an UnhandledPromiseRejectionWarning but doesn't print the error message or stack trace or such....
SvelteKit needs `-h` for host, but currently can't use it because sade is hardcoding it to `--help` (https://github.com/sveltejs/kit/issues/1432) I'm used to `-h` for host. E.g. that's what the `mysql` and...
When creating complex or deeply nested commands, the previous behavior displayed a long flat list of all the commands, including all the subcommands at all nested levels. For example, consider...
```js prog .command('foo') .describe('Top level command') .alias('f') .action(() => console.log('see `app foo --help`')) prog .command('foo bar') .describe('A subcommand') .action(() => console.log('did a thing')) prog .command('foo baz ') .describe('Another subcommand') .action((a)...
```js prog .command('foo') .describe('Top level command') .action(() => console.log('see `app foo --help`')) prog .command('foo bar') .describe('A subcommand') .action(() => console.log('did a thing')) ``` Use case: the `foo` command doesn't do...
Say we've the following CLI definition:- ```sh my-cli [options] init - Initialize serve - serve the project generate - scaffold out a new project -V, version -h, help information ```...
If one specifies `--custom-option`, it would be nice if you could access it as `args.customOption` instead of `args["custom-option"]`. Is this something you'd like to support?
Would be awesome if command arguments could be tab-completed. For example with the command prog.command('install '), you could specify some options for , so let's say Wordpress or Drupal, and...