svenkreiss / html5validator

Command line tool to validate HTML5 files. Great for continuous integration.
MIT License
314 stars 34 forks source link

Show --also-check-css parameter in --help output #77

Closed php-coder closed 3 years ago

php-coder commented 3 years ago

I suggest to add --also-check-css parameter to the "usage" and "optional arguments" sections. At this moment the parameter is only mentioned in the --math option description:

$ html5validator --help
usage: html5validator [-h] [--root ROOT] [--match MATCH [MATCH ...]] [--blacklist [BLACKLIST [BLACKLIST ...]]] [--show-warnings] [--no-langdetect] [--format {gnu,xml,json,text}]
                      [--ignore [IGNORE [IGNORE ...]]] [--ignore-re [IGNORE_RE [IGNORE_RE ...]]] [-l] [-ll] [-lll] [--log LOG] [--version]
                      [files [files ...]]

[v0.3.3] Command line tool for HTML5 validation. Return code is 0 for valid HTML5. Arguments that are unknown to html5validator are passed as arguments to `vnu.jar`.

positional arguments:
  files                 specify files to check

optional arguments:
  -h, --help            show this help message and exit
  --root ROOT           start directory to search for files to validate
  --match MATCH [MATCH ...]
                        match file pattern in search (default: "*.html" or "*.html *.css" if --also-check-css is used)
  --blacklist [BLACKLIST [BLACKLIST ...]]
                        directory names to skip in search
  --show-warnings       show warnings and count them as errors
  --no-langdetect       disable language detection
  --format {gnu,xml,json,text}
                        output format
  --ignore [IGNORE [IGNORE ...]]
                        ignore messages containing the given strings
  --ignore-re [IGNORE_RE [IGNORE_RE ...]]
                        regular expression of messages to ignore
  -l                    run on larger files: sets Java stack size to 2048k
  -ll                   run on larger files: sets Java stack size to 8192k
  -lll                  run on larger files: sets Java stack size to 32768k
  --log LOG             log level: DEBUG, INFO or WARNING (default: WARNING)
  --version             show program's version number and exit
$ html5validator --version
html5validator 0.3.3
svenkreiss commented 3 years ago

Thanks for reporting this @php-coder . I agree. I have put in a fix for this but feel free to re-open if this does not solve it for you.