How puritymind/mycat works
MyCat is a small C++ command-line text viewer. The workflow is: invoke the program with flags and file paths, parse the flags into configuration, then read each file and print its lines with the requested formatting and optional total. Help, version, and errors also produce terminal output. The excerpts show the main calls and file-reading behavior; stdin is explicitly unsupported.
Main entry points: config.cpp File processing · mycat.cpp Program entry · config.hpp Run configuration
Components 7
Other components
- CLI user
- Program entry
src/mycat.cpp - Argument parsing
src/config.cpp - Run configuration
src/config.hpp - File processing
src/config.cpp - Input files
- Terminal output
Connections 8
- CLI user → Program entry: runs with arguments
README.md - Program entry → Argument parsing: parses arguments
src/mycat.cpp - Argument parsing → Run configuration: sets options
src/config.cpp - Argument parsing → Terminal output: prints help or errors
src/config.cpp - Program entry → File processing: processes files
src/mycat.cpp - File processing → Run configuration: uses options
src/config.cpp - File processing → Input files: reads lines
src/config.cpp - File processing → Terminal output: prints formatted lines
src/config.cpp