Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
murex
A smarter shell and scripting environment with advanced features designed for usability, safety and productivity (eg smarter DevOps tooling)
I wrote a Linux CLI tool [0] that parses the man/help pages to extract option details. Works most of the time for me, but there are plenty of corner cases that don't work.
[0] https://github.com/learnbyexample/command_help
You can see how the parsing works in the source code (with a specific high level explanation of how this part works), as the site is an open source project.
https://github.com/idank/explainshell#how
Some shells have this built in, like Fish and my own one ( https://murex.rocks ) too
It’s on the front page: https://fishshell.com/
> Other shells support programmable completions, but only fish generates them automatically by parsing your installed man pages.
Fish isn’t the only one though. In fact I’m not even sure it was the first. But it’s definitely the most mainstream shell to support it.