thisisparker / xword-dl

⬛⬜⬛ Command line tool to scrape crosswords from online solvers and save them as .puz files ⬛⬜⬛
MIT License
145 stars 31 forks source link

Standardize options passed at runtime and in settings file #92

Closed thisisparker closed 9 months ago

thisisparker commented 1 year ago

Thinking about adding a flag to preserve clue HTML when provided (as discussed in #89) has resurfaced some inconsistency in the names of settings when they're provided from the command line vs. from the settings file vs. as a keyword in a Python environment. Ideally those would be exactly the same, and the cascading hierarchy of their application should be clear!

One technical note on that from the example at hand: if the command line flag is something like --preserve-html, the keyword argument in Python will use an underscore instead preserve_html) and the settings file keys should follow one or the other consistently.