Support both little and big endian dump by RinHizakura · Pull Request #189 · sharkdp/hexyl

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this option doesn't have to be depending on --group-size. Because if we don't specify the group size in the option, we'll default it to one. In other words, hexyl -g 1 file and hexyl file are the same.

For another question, the reason that I choose to use big-endian as default is because of the design of xxd:

$ xxd --help
...
Options:
    -e          little-endian dump (incompatible with -ps,-i,-r).

However, it would be fine if hexyl want to have a different design for the dump of endianness. Please tell me which you would prefer.