templating
templating copied to clipboard
Unify handling of missing parameter(s)/option(s)
Current situation:
Some cases are handled by top-level parser in sdk as invalid comand (Example: https://github.com/dotnet/templating/pull/4787#discussion_r886665388), some are handled within templating with an paropriate exit code (Example: https://github.com/dotnet/templating/blob/c2f92029d0ac21679ad3c5e1344ecb2582a647ec/docs/Exit-Codes.md?plain=1#L100)
Expected behavior:
All cases of missing mandatory arguments or options will lead to same exit code. The handling should ideally be unified within the System.CommandLine Parser