sharkdp / hexyl

A command-line hex viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Argument `--block-size=0` should be considered an error.

eth-p opened this issue · comments

Using --length=16block with --block-size=0 is the same thing as doing --length=0, and it doesn't make much sense to do intentionally.

Related: #106


Note: I'm doing a class assignment regarding creating tests (from scratch) for an open-source command line program, and I chose hexyl for it. You might have a couple more of these on the way, depending on what the assignment brings to light :)

Thanks. We should disallow block sizes of 0.