-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: add --custom-ignorefile
command line flag
#74
Conversation
Thanks @ProspectPyxis for the PR! I have one thing: Is the name of the option a good choice? I personally think that Update: I agree to @simonsan that |
Yes, I agree - the name feels a little awkward as it stands. There's not exactly a good short name that encapsulates "treat this file as a gitignore, so this works even in subfolders"... I can make a quick commit to fix this if you believe that would be a better name. |
IMHO |
@simonsan do you have a better idea? |
Some things that are IMHO better fitting:
|
I like |
I tend to like all the one's containing the word
P.S.: I generated the list with ChatGPT, so I'm not preferring my own ideas here, rather talking about it from a 3rd person POV. |
I'd like to throw in |
Or |
Actually I think we should have the term I don't like the So, I'd personally prefer |
Oh, I actually thought it should be? Like it should end up in a |
Yes, this is how clap works in that case. As a didn't hear arguments against |
--ignore-file
command line flag--custom-ignorefile
command line flag
Updated as requested! |
Thank you for the PR! 🚀 |
This adds the
--ignore-file
command line option to treat each listed file like a.gitignore
. This is distinct from the--exclude-file
option, since it uses the walk builder and thus will match the filename even in subdirectories.The name of the flag could be changed - as it stands, I don't think it's very clear from a glance what the difference between this flag and
--exclude-file
is - but this name seems like a good enough choice for now.Closes rustic-rs/rustic#832.