Message307852
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. |
|
Date |
User |
Action |
Args |
2017-12-08 16:20:17 | talkless | set | recipients:
+ talkless, pitrou, bethard, paul.j3, wolma, louielu |
2017-12-08 16:20:17 | talkless | link | issue18943 messages |
2017-12-08 16:20:17 | talkless | create | |
|