cli.options does not get reset when setArgv gets called #31

halkeye opened this Issue May 7, 2012 · 1 comment


None yet
2 participants

halkeye commented May 7, 2012

when I call cli.setArgv and then cli.parse (lets say for unit tests) I noticed that each call to parse gets additive to the previous calls.

Right now I can put "cli.setArgv(); cli.options = {}" but it feels wrong to access the internals directly.

setArgv should reset options, or a new interface should be provided to do so.


chriso commented May 17, 2012

Thanks, I'll fix it up now

chriso closed this in 925c6ec May 17, 2012

@chriso chriso added a commit that referenced this issue May 17, 2012

@chriso chriso Whoops, re #31 b9e3633
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment