Merge pull request #68532 from Calinou/cmdline-user-args-add-alternative-separator
Allow `++` as an alternative separator to `--` for user CLI arguments
This commit is contained in:
commit
5eeb6e5906
2 changed files with 5 additions and 3 deletions
|
|
@ -182,10 +182,12 @@
|
|||
<method name="get_cmdline_user_args">
|
||||
<return type="PackedStringArray" />
|
||||
<description>
|
||||
Similar to [method get_cmdline_args], but this returns the user arguments (any argument passed after the double dash [code]--[/code] argument). These are left untouched by Godot for the user.
|
||||
Similar to [method get_cmdline_args], but this returns the user arguments (any argument passed after the double dash [code]--[/code] or double plus [code]++[/code] argument). These are left untouched by Godot for the user. [code]++[/code] can be used in situations where [code]--[/code] is intercepted by another program (such as [code]startx[/code]).
|
||||
For example, in the command line below, [code]--fullscreen[/code] will not be returned in [method get_cmdline_user_args] and [code]--level 1[/code] will only be returned in [method get_cmdline_user_args]:
|
||||
[codeblock]
|
||||
godot --fullscreen -- --level 1
|
||||
# Or:
|
||||
godot --fullscreen ++ --level 1
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue