HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.14k stars 656 forks source link

Unify help messages handling #11584

Closed kLabz closed 7 months ago

kLabz commented 7 months ago

Current situation is a bit weird, with different behavior:

Which means we can have these (click to expand) ![image](https://github.com/HaxeFoundation/haxe/assets/6101998/6e83fcf4-6f43-436f-8d25-379c4542d5b7) But also this: ![image](https://github.com/HaxeFoundation/haxe/assets/6101998/7ae42f6a-b3c4-471b-808e-e4236c59b706) vs this: ![image](https://github.com/HaxeFoundation/haxe/assets/6101998/3a3aa624-dffa-4e4c-89ac-48ee08748dbf) And things like mix between raw stdout from --help-metas and message reporting from --version

With this PR, all of the above go through the same path, meaning: