diff options
author | defanor <defanor@uberspace.net> | 2017-12-04 06:57:25 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-12-04 06:57:25 +0300 |
commit | 95c890dbcd07b7355399e122191a362714cd52b9 (patch) | |
tree | 26e8ccdb3f9f2537a76b82d80a945f4b5e8adc09 /README.md | |
parent | 8218779504205227f0ea70d0c91270ff504d67a6 (diff) |
Make record selectors for mandatory arguments optional
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -32,14 +32,22 @@ Input { something = Nothing , fooBar2 = Bar} ``` -Its serialized version should look like this: +With the default modifiers, its serialized version should look like +this: ```haskell -["--foobar","foo","--arg1","1","--arg2","a string","--foobar2","bar"] +["--foobar","foo","1","a string","bar"] ``` What would look like this in a shell: ```sh +--foobar foo 1 'a string' bar +``` + +A more verbose version can be produced with `alwaysAddSelName = True`, +while parsing would accept either version: + +```sh --foobar foo --arg1 1 --arg2 'a string' --foobar2 bar ``` |