3 ms·
> PowerShell has interesting (if not very applicable to unix) approach: cmdlet parameters have some standard annotations attached that can be queried with refle
by woodruffw 10y ago
> PowerShell has interesting (if not very applicable to unix) approach: cmdlet parameters have some standard annotations attached that can be queried with reflection
Yeah, I think that's a tremendously useful feature. The status quo on unix of having 3-4 different program related files (man/info page, shell completions, i18n files) could really cleanly be replaced via a few standardized flags and pipe compositions. Take for example `man`:
man() { ${1} --man | less }
That's not feature-complete, of course, but IMO that's even more unixy than a bunch of out-of-sync /usr/share clutter.