News for hackers. Stuff that matters.
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.

Re:Don't write command-line interfaces (and how to write if ... by arogozhnikov on Friday October 09, 2020 @10:33PM (#24736312)
+1 for reading post