Skip to content

Remove stale sentence from --display-offset help text#269

Open
eyupcanakman wants to merge 1 commit into
sharkdp:masterfrom
eyupcanakman:fix/display-offset-helptext-112
Open

Remove stale sentence from --display-offset help text#269
eyupcanakman wants to merge 1 commit into
sharkdp:masterfrom
eyupcanakman:fix/display-offset-helptext-112

Conversation

@eyupcanakman
Copy link
Copy Markdown

The --display-offset help text claims a negative value seeks from the end of the file, but the parser rejects negatives. --skip keeps its identical claim because that flag actually honors it.

Before (hexyl --help):

-o, --display-offset <N>
        Add N bytes to the displayed file position. The N argument can also include a
        unit (see `--length` for details).
        A negative value is valid and calculates an offset relative to the end of the
        file.

After:

-o, --display-offset <N>
        Add N bytes to the displayed file position. The N argument can also include a
        unit (see `--length` for details).

The same sentence in doc/hexyl.1.md goes too.

Closes #112.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Argument --display-offset does not accept negative numbers, contrary to its helptext description.

1 participant