I created a python script with sub-commands today which I hadn't done before. I found an example of how it works, https://adamj.eu/tech/2021/10/15/a-python-script-template-with-sub-commands-and-type-hints/ . Having a template to work from made it much easier for me. Thanks @adamchainz for sharing!
[#]TIL
[#]python
[#]subcommands
=> More informations about this toot | More toots from davidruffner@raphus.social
@davidruffner glad it helped!
=> More informations about this toot | More toots from adamchainz@fosstodon.org This content has been proxied by September (ba2dc).Proxy Information
text/gemini