Building Nice Command Line Interfaces — A Look Beyond the stdlib
summary
Compares Python command-line libraries click, docopt and cliff, showing minimal code examples that produce help text and parse repeating options. Demonstrates testing click apps using click’s test runner to capture exit codes and stdout, explains plugin/entrypoint setup for multi-command applications, and covers table/list output formatting and cases where custom parsing is needed, with concrete tradeoffs and copyable snippets.
AI-written summary · about
chapters (10)
- 0:00CLI usability intro
- 4:32Click library basics
- 8:10Commands and endpoints
- 10:44Options and arguments
- 14:07Default values and types
- 17:45Testing CLI with Click
- 19:35CLI output formatting
- 22:03Extending CLI with plugins
- 26:39Interactive CLI configs
- 27:54Q&A
related talks
25mThe Hitchhiker's Guide to CLIs in Python
37mLet's Make Better Command Line Applications
27mCommand line programs for busy developers
23mThe Hitchhiker's Guide to CLIs in Python
27mHow to Write a Great Command Line Application
02h 28mBuilding human-first and machine-friendly CLI applications
36mCLI applications & TDD: Never write scripts again
27mClick: A Pleasure To Write, A Pleasure To Use
