Merge pull request #60799 from Calinou/doc-os-cmdline-args-3.x

This commit is contained in:
Rémi Verschelde 2022-06-19 14:09:23 +02:00 committed by GitHub
commit e4d6a4d005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,10 @@
if argument.find("=") > -1:
var key_value = argument.split("=")
arguments[key_value[0].lstrip("--")] = key_value[1]
else:
# Options without an argument will be present in the dictionary,
# with the value set to an empty string.
arguments[argument.lstrip("--")] = ""
[/codeblock]
</description>
</method>