cleye
cleye copied to clipboard
👁🗨 Strongly typed CLI development for Node.js
### Feature request Option to only parse flags before parameters ### Why? In tsx, we only want to parse the flags before the actual file being passed in. The flags...
### Bug description See code below. It results in this typescript error: ``` No overload matches this call. Overload 1 of 2, '(options: CliOptions, callback?: CallbackFunction | undefined, argv?: string[]...
### Bug description Run the code below (it seems to only happen when there's a command that has a custom `help` option). It results in this error: ``` TypeError: Cannot...
### Feature request Complex CLIs have nested commands. Would like to be able to do that with cleye. ### Why? To implement `npm config get`, `npm config set`, `npm config...
### Feature request For there to be a way to check a parent flag from a command, or to process parent flags before the command. ### Why? To support the...
Fixes #27 Unrelated question; do you use prettier? It surprised me when I went to contribute and my save by default made unrelated formatting changes w/ prettier defaults. I inferred...
### Feature request It makes sense to export public types for ease of access, and I find myself commonly wanting to `omit`/`pick` from a set of flags shared across multiple...
### Feature request It would be nice to publish cleye without minimised javascript ### Why? Being minimised makes it very hard to debug things, here's the error I'm currently looking...
### Bug description When I create subcommand in commonjs project, it causes type error like this ``` The inferred type of 'install' cannot be named without a reference to '../../node_modules/.pnpm/[email protected]/node_modules/type-flag/dist'....
### Feature request Possibility to use `@` in `name` ### Why? I am making an npm script, which will be available on npm, under scoped name, like `@company/cli`, but it's...