Closed ithinkihaveacat closed 6 years ago
It is not inconsistent, it is how Go parses command line. Booleans are different.
To set boolean you need =
i.e. -http2=false
.
Ah, I see. In that case, can the documentation be changed to make this clear? I suspect many users are not familiar with the details of go's command-line parsing behavior (or even that caddy is written in go).
Perhaps:
-http2=true|false
Yeah you're right end users may not know. Noted.
caddy
parses command line options inconsistently: in some cases both-option value
and-option=value
is accepted, but in others only the first is accepted.Both forms accepted for
-type
:Only one for accepted for
-http2
:The documentation does not suggest there would be any difference in the way these options are parsed: