Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,11 +1,13 @@ # godot cli options parser -[](https://godotengine.org "Made with godot") +[](https://godotengine.org "Made with godot") [](https://www.npmjs.com/package/@bendn/gdcli) <a href='https://ko-fi.com/bendn' title='Buy me a coffee' target='_blank'><img height='28' src='https://storage.ko-fi.com/cdn/brandasset/kofi_button_red.png' alt='Buy me a coffee'> </a> A utility for parsing command line arguments for godot. +> **Note** Versions < 2.0.0 are for 3.x + > **Warning** > > Waiting 4 [godot-proposals/4815](https://github.com/godotengine/godot-proposals/issues/4815) for the full experience. @@ -41,7 +43,7 @@ p.add_argument(Arg.new({ help = "show this help message and exit", action = "store_true" })) -var args = p.parse_arguments() # Parse +var args = p.parse_arguments(OS.get_cmdline_args() + OS.get_cmdline_user_args()) # Parse if args.get("help", false): # Check if we want help print(p.help()) # Show help else: |