Patterns for wrapping a command line tool in another language
- by Tom Duckering
I'm currently writing some Java to wrap around an extensive command line tool. It feels like I'm writing a lot of similar code.
I'm wondering if there are any established patterns for wrapping command line tools - passing arguments and handling output and so on.
Specific examples in Java would obviously be great, but any general suggestions or pointers are welcome too.