Command line programs are classes, too!

Most OOP discussions focus on GUI or domain-specific development
areas, completely ignoring the workhorse of computing: command line
programs. This article examines CommandLineApp, a base class for
creating command line programs as objects, with option and argument
validation, help text generation, and more.

Read more