hexedit icon indicating copy to clipboard operation
hexedit copied to clipboard

Commandline parsing should be as order-agnostic as reasonably possible

Open bradenbest opened this issue 1 year ago • 1 comments

hexedit filename -l 16 is not valid and results in a usage exit, but hexedit -l 16 filename is valid. I can see in the manpage and usage printout as well that the program expects the filename to come last, and it doesn't have to be this way.

I'll see if I can't fix these issues myself. I'd frankly like to rewrite the whole arg parser loop (no disrespect), but let's address one thing at a time.

bradenbest avatar May 26 '24 00:05 bradenbest

I'd frankly like to rewrite the whole arg parser loop

I ended up doing exactly that. If you decide to merge #71 it should automatically close this issue 👍

bradenbest avatar May 26 '24 06:05 bradenbest