Comment by mmis1000
8 days ago
Tell me how many ways that print help message for a command you have seen and say "reusable" again. Mcp is exactly exists to solve this. The rest is just json rpc with simple key value pairs.
You can probably let llm guess the help flag and try to parse help message. But the success rate is totally depends on model you are using.
Most CLIs use `--help`, any other are just plain hostile to the users.
`-h` is also popular, but there is also possible issue of that shorthand, hence `--help`.
some come with only very short description but most part are only discoverable by 'man'.
and windows mostly use \? and also \h,
java user single - for long argument because it don't have short one.
I doubt it is ever close to reusable.
And even allowed position of parameters (or even meaning of arguments in case of ffmpeg) are program dependent.
Some allow anywhere as long as it is started with a dash, some only allow before first input