Re:Don't write command-line interfaces (and how to write if ...
by tenebrisalietum on Friday October 09, 2020 @07:57PM
(#24735609)
I think this is trying to say you shouldn't build CLI parsing logic into your core functionality, and this makes sense.
Core functionality should be in functions, classes, etc. and a CLI utility can be separately written or synthesized that imports that library, and anything wanting to implement a different interface can do the same.
Isn't that the way it's normally done? Real world example is libcurl and curl command.
Core functionality should be in functions, classes, etc. and a CLI utility can be separately written or synthesized that imports that library, and anything wanting to implement a different interface can do the same.
Isn't that the way it's normally done? Real world example is libcurl and curl command.