-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support list of wordlists as a string #170
Conversation
Allow a wordlist filename string to contain a list of wordlist filenames
So the syntax for the list is semi-Python, using the names without quotes separated by commas and wrapped in square brackets?
How common do you think commas are in filenames? Could we use commas to separate the values and forego the brackets?
That sort of syntax is pretty common in other tools I'm familiar with. Other options would be to pass a directory name or glob pattern. Would either of those work for your use case? |
I was trying to do as little as possible to not break things I haven't tested, so having square bracket around a list seemed kinda Pythony. I'm not sure how common commas in file names are - and happy that foregoing the bracket and splitting on commas would work. If someone does have a comma in their filename, is fairly non-standard, and can be worked around by renaming the file. A directory name or glob pattern wouldn't work in my case, as the "common" and "per-project" word lists end up in different locations. |
Let's go ahead with that, then. Updating the docs in Do you want to make the updates to this PR?
That makes sense. Someone can always rely on the shell to do the globbing for them, anyway. |
I've made changes to the rst files as requested - but have not added unit tests. |
No problem, I'll add some tests. |
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.
Thanks!
I rebased this in #178 |
Allow the spelling_word_list_filename to be passed as a string, but still be a list filenames and treated as such
Fix for issue #169