This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author talkless
Recipients bethard, louielu, paul.j3, pitrou, talkless, wolma
Date 2017-12-08.16:20:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <6961dc72-81a4-a1f0-2dd0-0f2398be3c7a@gmail.com>
In-reply-to <1512584898.53.0.213398074469.issue18943@psf.upfronthosting.co.za>
Content
On 2017-12-06 20:28, paul j3 wrote:
> The default value is used *if the flag is not provided at all.*
> 
> "nargs='?'" provides a third option, assigning the 'const' value *if the flag is used without an argument*.

This did a "click" in my head. It works now with `nargs='?'` and `const='MediaProfile000'` as expected, thanks!

I am really sorry for the noise, due to misunderstanding while reading (skipping-throuhg?) Python documentation.
History
Date User Action Args
2017-12-08 16:20:17talklesssetrecipients: + talkless, pitrou, bethard, paul.j3, wolma, louielu
2017-12-08 16:20:17talklesslinkissue18943 messages
2017-12-08 16:20:17talklesscreate