3 ms·
As much as I like the CLI, I really find this useful, because it takes time to go through document and find the desired option. I think the real solution is th
by mpoloton 12y ago
As much as I like the CLI, I really find this useful, because it takes time to go through document and find the desired option.
I think the real solution is that every CLI program comes with a description file (probably in XML) that describes its CLI options, their types, combination, etc.
The description file should help automatic GUI creating or shell completion.
- andrewstuart2 12y agoI think you just described a man page. Except for the xml part. That sounds a lot more like something MS would do.
- mpoloton 12y agoThe man pages are intended for human and are not meant to be specs. An advanced NLP program is required to parse man pages and infer appropriate types and combinations and I suspect it would not be perfect. I agree that this might lead to something which is not in Unix spirit but already shell completion provide such information and this shows the need for such specs.
- hueving 12y agoIf only there were an IEEE standard for utility conventions.
- krschultz 12y agoI assume you are referring to the POSIX spec on utilities (http://pubs.opengroup.org/onlinepubs/9699919799/ http://pubs.opengroup.org/onlinepubs/9699919799/), which is helpful but not a full solution to the problem.