Repository navigation
Commit 1bd9fac
authored
🤖 Merge PR #54306 argparse: Add required: boolean to SubparserOptions by @tsondergaard
The required option was added in python 3.7.0a2 as a way to make
subparsers required again (the default behaviour in Python 2.7).
* https://bugs.python.org/issue9253
* python/cpython#3027
Since npm argparse 2.0.1 is a straight conversion of the Python
3.9.0rc1 version of argparse the required flag is valid here too.1 parent 46c3dc0 commit 1bd9fac
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments