-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command-line parser #123
Commits on Aug 9, 2021
-
Port of godotengine/godot#44594 to Godot 3.x. Co-authored-by: Shatur95 <genaloner@gmail.com> Co-authored-by: lupoDharkael <izhe@hotmail.es>
Configuration menu - View commit details
-
Copy full SHA for d7d64e2 - Browse repository at this point
Copy the full SHA d7d64e2View commit details -
Remove override keywords in
CommandLineParser
Not properly supported in Godot 3.x.
Configuration menu - View commit details
-
Copy full SHA for c2fc422 - Browse repository at this point
Copy the full SHA c2fc422View commit details -
Fix shadowed variable when comparing option names
Note: this could be ported to simple `PackedStringArray` equality comparison in Godot 4.0. [tests skip]
Configuration menu - View commit details
-
Copy full SHA for c7ff6ab - Browse repository at this point
Copy the full SHA c7ff6abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f8d80a - Browse repository at this point
Copy the full SHA 6f8d80aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e10edfd - Browse repository at this point
Copy the full SHA e10edfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 416d1e2 - Browse repository at this point
Copy the full SHA 416d1e2View commit details -
Rename
parse_args
toparse
inCommandLineParser
Consistent with other parsers in Godot, such as json/xml. [tests skip]
Configuration menu - View commit details
-
Copy full SHA for 807c142 - Browse repository at this point
Copy the full SHA 807c142View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fe0eb3 - Browse repository at this point
Copy the full SHA 4fe0eb3View commit details -
Rename
get_error()
toget_error_text()
inCommandLineParser
Consistent with `Expression.get_error_text()`, and `CommandLineParser`'s own `get_help_text()`. [tests skip]
Configuration menu - View commit details
-
Copy full SHA for 02d8645 - Browse repository at this point
Copy the full SHA 02d8645View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7be1c72 - Browse repository at this point
Copy the full SHA 7be1c72View commit details -
Rename more method in
CommandLineParser
`get_values/prefixes()` to `get_value/prefix_list()`, make consistent with other `_list()` methods on Godot. `get_forwarded_args()` to `get_forwarding_args()`, make consistent with `allow_forwarding_args` property.
Configuration menu - View commit details
-
Copy full SHA for df0a2b3 - Browse repository at this point
Copy the full SHA df0a2b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for db474d3 - Browse repository at this point
Copy the full SHA db474d3View commit details -
Remove dead code related to checkers in
CommandLineParser
These are not so trivial to implement in Godot 3.x since there's no Callable, which is Godot 4.x feature, and it might be better to see whether checher functionality is really needed in the first place, since validation is also possible to do via code after parsing, which is user-specific.
Configuration menu - View commit details
-
Copy full SHA for d074e05 - Browse repository at this point
Copy the full SHA d074e05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c02f16 - Browse repository at this point
Copy the full SHA 9c02f16View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0f102a - Browse repository at this point
Copy the full SHA e0f102aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66e37de - Browse repository at this point
Copy the full SHA 66e37deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7141f6e - Browse repository at this point
Copy the full SHA 7141f6eView commit details -
Merge
validate()
intoparse()
inCommandLineParser
There's not much benefit in separating the two, and in most cases makes API more confusing. Current parsing code validates arguments as well anyways.
Configuration menu - View commit details
-
Copy full SHA for 8b01b14 - Browse repository at this point
Copy the full SHA 8b01b14View commit details -
Add
new_option()
toCommandLineParser
Allows to conveniently add new options without instantiating `CommandLineOption` classes manually.
Configuration menu - View commit details
-
Copy full SHA for dcf414e - Browse repository at this point
Copy the full SHA dcf414eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d6cb740 - Browse repository at this point
Copy the full SHA d6cb740View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a0fa2d - Browse repository at this point
Copy the full SHA 1a0fa2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 093b4d2 - Browse repository at this point
Copy the full SHA 093b4d2View commit details
Commits on Aug 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 76a7e5c - Browse repository at this point
Copy the full SHA 76a7e5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b66bbef - Browse repository at this point
Copy the full SHA b66bbefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 05f4b44 - Browse repository at this point
Copy the full SHA 05f4b44View commit details
Commits on Aug 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1b77d73 - Browse repository at this point
Copy the full SHA 1b77d73View commit details -
Configuration menu - View commit details
-
Copy full SHA for b05da1d - Browse repository at this point
Copy the full SHA b05da1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 514d73b - Browse repository at this point
Copy the full SHA 514d73bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff7ee37 - Browse repository at this point
Copy the full SHA ff7ee37View commit details
Commits on Aug 12, 2021
-
Add utility methods for
CommandLineOption
When declarative approach is not enough.
Configuration menu - View commit details
-
Copy full SHA for 1a41e9d - Browse repository at this point
Copy the full SHA 1a41e9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2eeadba - Browse repository at this point
Copy the full SHA 2eeadbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e4595c - Browse repository at this point
Copy the full SHA 8e4595cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 558dd3d - Browse repository at this point
Copy the full SHA 558dd3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37b7478 - Browse repository at this point
Copy the full SHA 37b7478View commit details -
Configuration menu - View commit details
-
Copy full SHA for f539979 - Browse repository at this point
Copy the full SHA f539979View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4859a6 - Browse repository at this point
Copy the full SHA a4859a6View commit details
Commits on Aug 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 20d3a30 - Browse repository at this point
Copy the full SHA 20d3a30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90ea98a - Browse repository at this point
Copy the full SHA 90ea98aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9340536 - Browse repository at this point
Copy the full SHA 9340536View commit details