Chapter 20. A Command-Line Parser
Many programs begin the same way: they read command-line arguments, decide what the user requested, then execute an operation.
| Section | Title |
|---|---|
| 1 | A Command-Line Parser |
| 2 | A File Copier |
| 3 | A Line Filter |
| 4 | A Tiny HTTP Client |
| 5 | A Static Library |
| 6 | Testing Strategy |
| 7 | Benchmarking |
| 8 | demo |
| 9 | Where to Go From Here |
| 10 | Appendix A. Zig Syntax Summary |
Testing Strategy
Tests should be close to the code they check. Zig makes this easy with test blocks.