Add to argument exclusions for dry-run #1000
Reference in New Issue
Block a user
Delete Branch "sean-wallace/borgmatic:fix-filter-bug"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #999
Thanks for taking the time to submit a PR for this! Here's a potential edge case though that makes borgmatic's simple approach to Borg flag exclusion not work here:
--filter AME(as opposed to--filter=AME) is valid for Borg—and in fact is the documented way to pass flags with values. It looks like Borg does still accepts--filter=AME, but there's not guarantee a user will include that equals sign. So unfortunately I think any attempt to exclude this flag will have to be a bit smarter and, worst case, will even need to use something likeargparse.Ah, that's a good point! Yes, it's definitely a bit more complicated than this simple approach. I may come back and make an attempt with argparse later, but mostly I think I'll just live with the limitation for the time being. Thanks again.
Okay, I'll close this PR for now and one of us will hopefully give it another go. 😄
Pull request closed