With the doctest module, there exists a nice tool to turn interactive examples in documentation into tests of python modules. This is fine for library-like code, but I am working on a command line tool, reading and writing small files according to the option provided with the command.
Is there something similar to turn usage examples of such a command line tool into tests?