Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

devlog 26

XVC Development #xvc.py #clap #command-line #type-checking #options

🐢 We can add type checking to xvc.py’s command-line handler. Currently, it builds a command line manually from the given options and parses it with clap. It’s error-prone.

🐇 What are the options, though? xvc.py is just a wrapper around xvc, and that was the easiest way to get it working. We can list all options manually in the headers as documentation, but it will be harder to maintain.

🐢 Once we start doing it, we’ll find a good way to simplify and shorten it.

🐇 Let’s start to work on xvc file track, then.

🐢 Worked on it a bit, and I decided it’s not worth it at the moment. We need to supply default values for most of the options. Maintaining a separate list of default values may not be feasible; it will be error-prone in a different way.