Allow `namedParser` use for complex words
Description
Problem: if I have a CLI option with complex parameter like
vote-period
, I cannot encode this with Haskell labels, moreover I
don't want to.
Solution: change namedParser
so that if a e.g. votePeriod
name is
provided, the respective option will be named as vote-period
.
I use text-manipulation
package to implement this behaviour, we
already depend on it in Lorentz.
Related issue(s)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Konstantin Ivanov