4 ms·
Significantly harder problem, but what would be of most interest for me is for a program to offer this interface to an unannotated program (which will always be
by fbdab103 3y ago
Significantly harder problem, but what would be of most interest for me is for a program to offer this interface to an unannotated program (which will always be the majority). `trogon ffmpeg` or what have you. Theoretically, command line help is structured in a way it should be possible to parse, but I have no doubt there are many many non-compliant implementations that exist. I suppose you could lean on man files when they exist.
- willm 3y agoThat is a tricky problem indeed. I’m thinking a lot could be extracted from help and man pages. But maybe for some apps we could just write it by hand, or partially by hand. These schemas could be in a repo and downloaded on demand.
- em-bee 3y agothere is a large collection of annotations for autosuggestion of commandline arguments for fish and other shells that should be usable too.
- pmarreck 3y agoI hate to be the broken record here but I bet chatgpt could read the man pages for any commandline app and develop a schema in the given format for it. In fact I’d love to try to do that