3 ms·
>I think it could be normalized further by having a shell function get help for a command. See PowerShell commandlets for a related precedent: https://learn.mi
by Arnavion 2y ago
>I think it could be normalized further by having a shell function get help for a command.
See PowerShell commandlets for a related precedent: https://learn.microsoft.com/en-us/powershell/scripting/developer/help/examples-of-comment-based-help?view=powershell-7.5 https://learn.microsoft.com/en-us/powershell/scripting/devel... Commandlets (shell functions) can annotate themselves and their parameters in a standard way, and then the shell's builtin help command parses that and presents it in a standard way. Though unfortunately this kind of integration only works for the commandlets, not arbitrary executables, because there's no standard for executables to expose such metadata to the shell.