Answer the question
In order to leave comments, you need to log in
How to escape hyphen on command line for Puppeteer, node, minimist?
You need to run something like this:
node some_script.js --param_1 '37.7790262' --param_2 '-122.419906' --param_3 'blablabla'
var argv = require('minimist')(process.argv.slice(2));
console.dir(argv);
param_1: 37.7790262,
param_2: true,
param_3: blablabla,
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question