Skip to content
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

Remove -i and -o command line options #71

Merged
merged 12 commits into from
Jan 31, 2023

Conversation

JaapJoris
Copy link
Member

The -i and -o command line options have been removed, and the argument parsing has been moved to a separate options module. Finally, a small bug (#70) has been fixed as well.

The main use case of DjHTML is to modify files in-place. Therefore, the `-i`
(`--in-place`) argument has been made the default and removed, leaving only
a deprecation error. The `-o` (`--output-file`) argument has also been
removed.

Reading from standard input and writing to standard output is still
supported by using "-" as the filename. By the same mechanism, writing the
output to a different file is also still possible by using output
redirection:

    djhtml - < input.html > output.html

Since this is a backwards-incompatible change, the next release will
increment the major version number. No changes have been made to the
indentation algorithm.

Closes #66
Closes #69
Closes #70
@JaapJoris JaapJoris linked an issue Jan 30, 2023 that may be closed by this pull request
noxfile.py Show resolved Hide resolved
djhtml/__main__.py Outdated Show resolved Hide resolved
djhtml/__main__.py Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
noxfile.py Show resolved Hide resolved
djhtml/__main__.py Show resolved Hide resolved
djhtml/__main__.py Show resolved Hide resolved
djhtml/__main__.py Outdated Show resolved Hide resolved
djhtml/__main__.py Outdated Show resolved Hide resolved
@JaapJoris JaapJoris force-pushed the 69-funny-behavior-with-pre-commit-and-windows branch from 88184d6 to 1cdafb3 Compare January 31, 2023 19:46
@JaapJoris JaapJoris force-pushed the 69-funny-behavior-with-pre-commit-and-windows branch from 11adaa2 to 2fc2413 Compare January 31, 2023 21:14
@JaapJoris JaapJoris merged commit 898894b into main Jan 31, 2023
@JaapJoris JaapJoris deleted the 69-funny-behavior-with-pre-commit-and-windows branch January 31, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Funny behavior with pre-commit and Windows
2 participants