Skip to content

Commit

Permalink
Add explicit note to only call parse once (#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored Oct 16, 2023
1 parent 7e6c663 commit e56e9d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,8 @@ program.parse(); // Implicit, and auto-detect electron
program.parse(['-f', 'filename'], { from: 'user' });
```

If you want to parse multiple times, create a new program each time. Calling parse does not clear out any previous state.

### Parsing Configuration

If the default parsing does not suit your needs, there are some behaviours to support other usage patterns.
Expand Down

0 comments on commit e56e9d0

Please sign in to comment.