How-to guides
Short answers to specific questions, for when you already know what you are trying to do.
- Collect a repeated option —
--tag a --tag binto aList. - Write a converter for your own type — anything beyond the built-ins.
- Make a positional argument optional — and capture a trailing rest.
- Accept one of a fixed set of values — enums, matched case-insensitively.
- Choose between the delegate and annotation styles — what actually differs.
If you are new to Argot, the tutorial is a better starting point: these pages assume you already know what an Arguments class looks like.