Closed plaindocs closed 1 year ago
I'm also having this problem. Using --enforce-https false
doesn't work either. It gives:
Error: false does not exist
I assume the syntax from the issue description is the correct one
Another note, this problem seems to also occur for --check-external-hash=false
. Maybe this is a larger issue with boolean CLI parameters
Whoops, thanks for the report. 4.1 should fix this.
Thanks @gjtorikian you're a :star2:
Still the same on 5.0.2 . In CLI below command was OK with 4.4.0
htmlproofer _site/ --extension .html --assume-extension .html --checks Links,Images,Scripts,OpenGraph --swap-attributes '{"img": [["src", "data-src"]] }' --enforce-https=false --ignore-status-codes 999,401 --disable-external=true --swap-urls www.mysite.com:localhost:4000
--disable-external=true
also an issue.
Came here for the same error, might want to add something to the readme 😄
5.x fixed this to make more logical sense and restore old behavior. Try
--disable-external true
(In other words, no =
.)
I've tried this without =
→ false does not exist (ArgumentError)
.
ruby 3.1.3, html-proofer 5.0.2
Looking into it!
Ah, I misread the original issue.
In 5.0, the commands changed:
--no-enforce-https
: this is equivalent to the old enforce_https = false
--disable-external
: this is equivalent to the old disable-external = true
This was done so that boolean expressions could use the --[no-]*
syntax, which is common across Ruby CLI. Hope that helps!
From the 3->4 changelog
Is that possible using the CLI? When using
--enforce-https=false
I get