Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Powershell scripts and cmdlets work similarly. They probably won't have help text but at least you can see what's available without having to look at the argument parsing section of the script. And you can use the shortest unique prefix as the short form of an argument (though I don't love this since adding an argument can break the shortened form of other arguments)


It’s easy (although verbose) to add help text, and valid options, too.


Also easy to create option sets so that mutually exclusive arguments are shown in the help as different ways to invoke the script.


And bunch of other niceties, all queryable without running the script, and all feeding autocomplete with useful information:

https://news.ycombinator.com/item?id=26748549




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: