Hi,
two cents from my side. I think that warnings as errors would ideally work like normal -Werror in compilers.
1. Regarding name: -W doesn't indicate anything about errors. Only something with warnings. I am not sure if having this short option is worth it.
2. This might be controversial, but ability to do -Wno-error, would be great. Problem is we don't have categorized/named warnings/errors. But I think that it could support a syntax where we use file name (or partial match on its path) and disable warnings-as-errors for that source file. Or this might be even easier to implement: regex for warning message. It it matches, it won't be treated as an error.
3. Exit code only change won't force developers to immediately fix their code as it's really easy to ignore in interactive terminals. Sure, later CI would catch it, but I would prefer early fail if possible.
Br,
Michal