Skip to content

feat: allow multiple --skip options to add together - #287

Open
BTF-Kabir-2020 wants to merge 1 commit into
sharkdp:masterfrom
BTF-Kabir-2020:feat/multiple-skips-additive-266
Open

feat: allow multiple --skip options to add together#287
BTF-Kabir-2020 wants to merge 1 commit into
sharkdp:masterfrom
BTF-Kabir-2020:feat/multiple-skips-additive-266

Conversation

@BTF-Kabir-2020

Copy link
Copy Markdown

Summary

  • Accept repeated -s / --skip via clap Append.
  • Apply each skip in order so offsets add (e.g. -s 8 -s 9 skips 17 bytes).
  • Update help text and add an integration test.

Fixes #266

Test plan

  • cargo test --test integration_tests skip::multiple_skips_are_additive
  • Spot-check hexyl FILE -s 8 -s 9 --length=4 against a known fixture.

Repeated -s/--skip values are applied in order so -s 8 -s 9 skips 17 bytes.

Fixes sharkdp#266
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.

Multiple --skips should add together.

1 participant