-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow strip and keep to be used together #580
Allow strip and keep to be used together #580
Conversation
5900149
to
fc98c34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@andrews05 - please can you update Docs and builtin help? 😇 |
Heh, yeah I didn't think about docs until after I posted the PR. I'll make some changes... Argument order is irrelevant, your example will keep the selected chunk. Perhaps we could prohibit keep with strip-all to reduce any confusion there? |
I think being able to combine both is useful. Perhaps stating that 'keep overrides strip' in the docs is sufficient? |
Hm, what makes you say it could be useful? |
Perhaps I misunderstood... --strip all --keep # (1) Useless!
--strip all --keep aCEd # (2) Has some use!?... Not sure how complicated it is to distinguish between the 2 cases?...
Yes, ideally prohibit (1). But Docs should state |
Sorry, I should have put a value in there - it is required to have one, so (1) is indeed already prohibited 😆 But I'm still unclear why you're suggesting |
I should read the manual .... 🤦♂️ !! Yes: a combination of |
Ha, all good 🙂 Anyway, I'll make the changes... |
This reverts commit 97af04a.
This is a minor change that allows using both `--strip` and `--keep` at the same time. E.g. `--strip safe --keep eXIf` will strip chunks while preserving both the ones that aren't "safe" to remove *and* eXIf. Essentially it's a convenience to allow extending the default list used by `--strip safe`. Specifying chunk names for both options is not permitted, e.g. `--strip eXIf --keep eXIf` will error. Use of `--strip all` with `--keep` is redundant, but is permitted.
This reverts commit 97af04a.
This is a minor change that allows using both
--strip
and--keep
at the same time.E.g.
--strip safe --keep eXIf
will strip chunks while preserving both the ones that aren't "safe" to remove and eXIf. Essentially it's a convenience to allow extending the default list used by--strip safe
.Specifying chunk names for both options is not permitted, e.g.
--strip eXIf --keep eXIf
will error.Use of
--strip all
with--keep
is redundant, but is permitted.