Command-Line Interface¶
A neat pure-python tool to prepare your static files for deployment
usage: critic [-h] [--version] [-v | -q] {minify} ...
Positional Arguments¶
- command
Possible choices: minify
minify Parse and consequently minify your static files
Named Arguments¶
- --version
Get the current version
Default:
False- -v, --verbose
Increase output
Default:
False- -q, --quiet
Silence all output
Default:
False
Sub-commands¶
minify¶
Minify your files
critic minify [-h] [-d] [-l] [+p <glob> [<glob> ...]] [-p <glob> [<glob> ...]]
[<file type>]
Positional Arguments¶
- <file type>
Possible choices: css, all
The file type to use
Default:
'all'
Named Arguments¶
- -d, --demo
Displays files that would be affected, without doing anything
Default:
False- -l, --list-patterns
List the patterns currently saved
Default:
False- +p, +pattern
Add a new pattern
- -p, -pattern
Drop a pattern