Errors with 0.47 --minify

Error on Windows

M:\Hugo>hugo server  --verbose --watch --minify
Error: unknown flag: --minify

Don’t report an error with hugo server - ignore --minify

what works:

hugo --verboseLog --minify

please check!

The error is preferred in my opinion.

It clearly tells the user what didn’t work.

Else someone might raise an issue saying that they passed --minify to hugo server and it didn’t work! :slight_smile:

1 Like

Yep, the error message is confusing

hugo server  --verbose --watch --minify
Error: unknown flag: --minify

Can you change it to “Error: flag: --minify not supported for hugo server” or so … to clear it.

That error is produced by Cobra. You can raise an issue here:

1 Like