Message373997
It seems the discussion has so far revolved around 'optional' arguments with `required=True`.
What about the other way around?
While trying to set `required=False` for a positional argument raises an exception, it is still possible to make the positional argument effectively optional by `nargs='?'` (it is then printed in brackets in usage message). |
|
Date |
User |
Action |
Args |
2020-07-20 10:23:49 | kkarbowiak | set | recipients:
+ kkarbowiak, rhettinger, terry.reedy, bethard, eric.smith, eric.araujo, r.david.murray, docs@python, benschmaus, tshepang, martin.panter, paul.j3, markgrandi, mburger, Martin.d'Anjou, Oliver.Smith, rhartkopf, Albert White, tonygaetani, shaharg, maggyero, Jacktose |
2020-07-20 10:23:49 | kkarbowiak | set | messageid: <1595240629.66.0.91687679094.issue9694@roundup.psfhosted.org> |
2020-07-20 10:23:49 | kkarbowiak | link | issue9694 messages |
2020-07-20 10:23:49 | kkarbowiak | create | |
|