Open tocttou opened 8 years ago
@tocttou I think you may have to process the args before passing into parse
first. Ie. to get rid of [node, src/index.js]
I've been doing the following:
const parsedArgs = vorpal.parse(process.argv, {use: 'minimist'});
vorpal.parse(parsedArgs._)
Before I was running as you were, just passing raw argv and saw the same error. However now I am currently seeing my program execute without actually running any commands although I see no error. :(
Note I've documented my issue more thoroughly over in https://github.com/dthree/vorpal/issues/171
version: 1.11.4 node version: 6.3.1
I am following the docs but
vorpal.parse()
seems to be broken. Can you please tell me what is wrong here? Thanks.index.js
Terminal output: