Vincas Dargis <vin...@gmail.com> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue18943> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com