ndd7xv / heh

A terminal UI to edit bytes by the nibble.
MIT License
444 stars 18 forks source link

[BUG] `--version` missing #80

Closed davidak closed 1 year ago

davidak commented 1 year ago

Describe the bug The README sais --version exist, but it does not.

To Reproduce

[nix-shell:~/.cache/nixpkgs-review/pr-246402]$ heh --version
error: unexpected argument '--version' found

  tip: to pass '--version' as a value, use '-- --version'

Usage: heh [OPTIONS] <FILE>

For more information, try '--help'.

The tip is not helping here:

[nix-shell:~/.cache/nixpkgs-review/pr-246402]$ heh -- --version
Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }

Expected behavior It is a basic option like --help that any CLI program should have.

Desktop (please complete the following information):

Additional context Noticed while reviewing the packaging for NixOS: https://github.com/NixOS/nixpkgs/pull/246402

ndd7xv commented 1 year ago

Thanks so much for the bug report :D I plan on fixing soon, didn't even know of https://github.com/NixOS/nixpkgs/pull/246402, but that's super cool :partying_face: