-
You're using process.argv directly within your functions. It might be a good idea to use a library like yargs for more structured and easier handling of command line arguments.
-
- [ ] add configuration by file (see [Building Configurable CLI Apps
](https://github.com/yargs/yargs/blob/master/docs/advanced.md#configuration) in Yargs‘ documentation)
- [ ] configure multiple ru…
-
I am currently trying to run lando inside a Windows Docker image on Windows OS.
Specifically, I am using docker:20.10.8-windowsservercore-1809 from the official Docker in Docker [website](https://hub…
-
## Problem
My CLI defines two examples, and one of them has both a long command and a long description. Here is a simplified version of my `yargs` setup:
~~~js
const yargsArgv = require("yargs"…
-
I named a positional argument `version` which resolved in very weird behaviors. After quite some debugging I realized that during parsing you convert positional arguments into options yet you don't ve…
AuHau updated
3 years ago
-
I have a config like this:
```js
filetype: {
choices: ['.js', '.jsx'],
type: 'array'
},
recursive: {
type: 'boolean'
},
```
So this works:
```
create-index --filetype .js .jsx --re…
-
Hi,
Thanks for your default pdf config repo.
As of today 2020-03-27, after cloning and entering in the cloned directory `npm install` throw a max of errors.
Tried with both node12 (error but succ…
-
dts-gen -m yargs
C:\Users\melhamod\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\definitely-typed.js:40
for (const [name, text] of files) {
^
SyntaxError: Unexpect…
ghost updated
7 years ago
-
Commander brings a few issues to the CLI, it's hard to test and to personalize.
[Yargs](https://github.com/yargs/yargs) seems to be a great alternative, it's also used by Jest.
-
**Describe the bug**
I'm using smui with SvelteKit, adapter-node and building on Docker (node:17).
Weird thing is that building on my laptop with the same node version does not reproduce this erro…