Skip to content

Commit

Permalink
Update readme (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-zherikov authored Oct 31, 2024
1 parent 9326b70 commit c3f0cbb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,12 @@

### Enhancements and bug fixes

* Boolean values (`yes`,`y`,`true`,`no`,`n` and `false`) are now parsed case-insensitively.
* Fix for `Command()` UDA: `ArrayIndexError` is not thrown anymore.
* Error messages are printed with `Config.styling` and now have the same styling as help text.
* New `errorMessagePrefix` member in `Config.styling` that determines the style of "Error:" prefix in error messages. This prefix is printed in red by default.
* New checks:
* Argument is not allowed to be in multiple argument groups.
* Subcommand name can't start with `Config.namedArgPrefix` (dash `-` by default).
* For positional arguments within a command:
* There should be no gaps in indexes, e.g. `0,1,3,4` indexes are not allowed because `2` is missed.
* Indexes should be unique, e.g. `0,1,2,3,2` indexes are not allowed because `2` is repeated.
* Number of values should be fixed (i.e. minimum number of values should be the same as maximum number of values) unless it's the last positional argument.
* Required positional arguments must go before optional positional arguments.
* Optional positional arguments are now allowed if command has default subcommand.
* Functions for parsing customization (`PreValidation`, `Parse`, `Validation` and `Action`) can now return `Result` through `Result.Success` or `Result.Error` and provide error message if needed.
* Fixes for bundling of single-letter arguments.
For example, the following cases are supported for `bool b; string s;` arguments:
Expand Down

0 comments on commit c3f0cbb

Please sign in to comment.