Support for stdin/out and file in/out in CLI