Repository navigation
What has changed:
Introduced a new Tokenizer class to enable a more advanced syntax to be parsed (Normalizer now only handles the value filtering)
- Negative numbers are now supported and will be auto-detected and not treated as options.
- Implemented a "variadic boundaries" syntax, which offers more flexibility to use multiple variadic arguments/options.
- a bug with options that are defined only with a long name and are variadic ->option("--names [items...]") is now working as expected.
- minor improvements and fixes to satisfy linters and phpstan.
- Namespace is now
JCli
# Now, variadic arguments can be explicitly used :
$ app cmd arg11 arg12 --opt [ val1 val2 ] # 👍
$ app cmd [arg11 arg12] --opt [val1 val2] # 👍
$ app cmd arg11 arg12 --opt val1 val2 # 👍
$ app cmd [arg11 arg12] [arg21 arg22] --opt val1 val2 # 👍
$ app cmd arg1 arg2 --flags [ -- -a -b -c ] --opt val1 val2 # amazingly this one is working also 👍
#Negative numbers:
$ app scan --offset -5 # 👍