Ask HN: Is there a database of Linux commands and their flags

4 points by laumars ↗ HN
While the obvious answer is `man`, what I'm after is something parsable so I can convert the contents into a JSON format for a project I'm working on.

Also, same question but for Windows commands (not Powershell).

2 comments

[ 3.2 ms ] story [ 14.2 ms ] thread
You probably have to parse the man pages. Explainshell.com does that, you might be able to use some of their code.
Thank you, I'll take a look at Explainshell.com.

It seems weird (to me at least) that there isn't already a modern, machine parsable, format for this.