rtts / djhtml

Django/Jinja template indenter
GNU General Public License v3.0
582 stars 32 forks source link

Feature request: Command-line options #3

Closed JaapJoris closed 3 years ago

JaapJoris commented 3 years ago

It would be nice to have some more control over DJHTML's behavior through command-line arguments. @sjoerdjob suggested the following options:

sjoerdjob commented 3 years ago

While working on this, it would probably also be good to not overwrite the file when nothing has changed.

Would you prefer to use a dependency like Click for command-line parsing, or is optargs/argparse good enough, with the benefit of no dependencies?

JaapJoris commented 3 years ago

argparse will do fine. Let's try to keep DJHTML as dependency-free as possible. Although I have to admit I'm mouthwatering at pytidylib...