myint / scspell

Spell checker for source code
https://pypi.python.org/pypi/scspell3k
GNU General Public License v2.0
90 stars 20 forks source link

Add to dictionary from command line #19

Closed pbogut closed 7 years ago

pbogut commented 7 years ago

First of all, nice tool, thanks for doing that.

Is there a way to add a word to dictionary from command line (without interactive mode)?

I'm using this as a linter checker. It works great, however, when I'm in Vim I can't (actually I could but I don't want to) use it in interactive mode. But I still would like to have a way to add a word to dictionary. So something like scspell --add-to-natural-dictionary myfancyword would be great.

pbogut commented 7 years ago

Would you accept PR if I implement this feature? I'm fancy doing that.

If so, which version would you prefer?

Or maybe even different approach?

myint commented 7 years ago

Sure, I'll accept a pull request. The latter approach with varying parameters seems preferable to avoid clutter.