Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted a better optparse to use in other places so I beefed up the one GUT uses. If you need to parse command line options you can copy
addons/gut/cli/optparse.gd
. It has no dependencies in GUT. Seescratch/optparse_example.gd
for some usage examples.Changes for GUT
option value
) instead of usingoption=value
.-gh
option now has headings for the different options. It looks a lot better.-gdir
and-gtest
can be specified multiple times instead of using a comma delimited list.Changes to optparse.gd
optparse.gd
. Read that for full info about usage.option=value
is now an optional way to specify an option value.option=
. Before you would always get['']
as the value.optparse.gd
originally, it now has a full set of tests.