diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2020-06-08 14:25:15 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2020-06-08 22:16:02 -0400 |
commit | 1ee01c6de09e8556ece57756ac2d52ba9b28e27b (patch) | |
tree | db1189aa51039f8c222b6fc96c0fe502f1eba618 /readme.md | |
parent | 63b9eea62c44182032d86f722e54c11cdc1d9077 (diff) |
Add alternate Rust-y range syntax (#11)
Refactor to support choice 'kind'
Add ParseRangeError
Add rust syntax range parsing tests
Implement rust syntax parsing
Change parse to not anticipate exclusivity
Add choice tests
Implement Rust syntax choices
Show that there are multiple in opt.choice*s*
Refactor repeated code in choice tests
Update documentation to reflect Rust range syntax
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -43,11 +43,11 @@ Please see our guidelines in [contributing.md](contributing.md). ``` $ choose --help -choose 1.1.1 +choose 1.1.2 `choose` sections from each line of files USAGE: - choose [FLAGS] [OPTIONS] <choice>... + choose [FLAGS] [OPTIONS] <choices>... FLAGS: -c, --character-wise Choose fields by character number @@ -65,8 +65,10 @@ OPTIONS: -o, --output-field-separator <output-field-separator> Specify output field separator ARGS: - <choice>... Fields to print. Either x, x:, :y, or x:y, where x and y are integers, colons indicate a range, - and an empty field on either side of the colon continues to the beginning or end of the line. + <choices>... Fields to print. Either a, a:b, a..b, or a..=b, where a and b are integers. The beginning or end + of a range can be omitted, resulting in including the beginning or end of the line, + respectively. a:b is inclusive of b (unless overridden by -x). a..b is exclusive of b and a..=b + is inclusive of b ``` ### Examples |