-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(parser): cache stdin value in global scope (#935)
Currently, flags and args read from stdin are lost whenever Parser.parse is called multiple times. This PR caches the value read from stdin so that Parser.parse can be called multiple times. This PR also: * decreases timeout for reading stdin (from 100ms to 10ms) * Flags with allowStdin: 'only' are no longer required to have - provided as the value (it's assumed)
- Loading branch information
1 parent
1c7ef23
commit c8bf886
Showing
2 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters