Skip to content

Add public reset method to enable multiple calls to parse.#499

Closed
lukeasrodgers wants to merge 1 commit intotj:masterfrom
lukeasrodgers:add-reset
Closed

Add public reset method to enable multiple calls to parse.#499
lukeasrodgers wants to merge 1 commit intotj:masterfrom
lukeasrodgers:add-reset

Conversation

@lukeasrodgers
Copy link
Copy Markdown

This makes it easier to unit test code that runs commander.

Addresses #438

I don't have tons of experience with commander.js so this approach may not work for all cases.

This makes it easier to unit test code that runs commander.
@rarkins
Copy link
Copy Markdown

rarkins commented Jan 19, 2017

This would definitely be helpful

@abetomo abetomo requested a review from segfaultmedaddy June 28, 2017 08:12
@segfaultmedaddy
Copy link
Copy Markdown
Collaborator

Unnecessary, a new command can be instantiated by using new Commander()

@segfaultmedaddy
Copy link
Copy Markdown
Collaborator

Commander itself (main function) is an instance of Commander object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants