Questions tagged [minimist]
17 questions
0
votes
1 answer
How to get index of command line arguments passed when process was launched?
For example:
node app.js --help --path=asd
I want to know index of --help argument to be sure that it a first.
Minimist returns an object which keys are these arguments, but we cann't be sure of the order of the keys of the object.
I see only one…

SIARHEI PAKHUTA
- 175
- 2
- 12
0
votes
1 answer
Javascript unpack command line dictionary
I am learning javascript.
I am recieving a variable length of dictionary from the command line of the form
--myargs = {"foo":"bar", "foo2":"bar2"}
I can read the args by
var argv = require('minimist')(process.argv.slice(2));
console.dir(argv)
var…

Illusionist
- 5,204
- 11
- 46
- 76