zet icon indicating copy to clipboard operation
zet copied to clipboard

Options `--count` and `-c` differ in behaviour

Open sudo-nice opened this issue 1 year ago • 3 comments

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.

sudo-nice avatar Feb 02 '24 10:02 sudo-nice

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 avatar Feb 02 '24 15:02 yarrow

@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.

ghost avatar Mar 07 '24 04:03 ghost

Oh, I should add, thanks for the great tool! <3

ghost avatar Mar 07 '24 04:03 ghost