3 ms·
Isn't docopt kinda like like this too? > Of course, none of this would be a problem if there was a standard "--complete <shell>" flag. PowerShell has interest
by zokier 10y ago
Isn't docopt kinda like like this too?
> Of course, none of this would be a problem if there was a standard "--complete <shell>" flag.
PowerShell has interesting (if not very applicable to unix) approach: cmdlet parameters have some standard annotations attached that can be queried with reflection
- 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.