Closed JaapJoris closed 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:
--check
--diff
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?
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...
argparse
It would be nice to have some more control over DJHTML's behavior through command-line arguments. @sjoerdjob suggested the following options:
--check
to only check files and not alter their contents--diff
to show the diff between the input file and the would-be output file