zet
zet copied to clipboard
Options `--count` and `-c` differ in behaviour
Please, consider the file cat some_file
:
foo
bar
foo
Now, running zet union some_file --count
, we get (as expected):
2 foo
1 bar
But running zet union some_file -c
, we get unexpectedly different result:
1 foo
1 bar
Judging by the description, these options should produce the same result. I've tested zet 1.0.0.
Yes, this is an error. Fixed in 2.0 (which isn't out yet — and is only 2.0 because fixing the error will result in changed behavior!)
@yarrow I don't think you need to bump the major version number. Changes in interface that align behavior with documentation are patch version increments, as far as I'm aware. Undocumented interface behavior is typically not considered as part the interface of the program, I think.
Oh, I should add, thanks for the great tool! <3