Skip to content

Replace custom CLI with argparse - #83

Open
hugovk wants to merge 2 commits into
python:mainfrom
hugovk:argparse
Open

Replace custom CLI with argparse#83
hugovk wants to merge 2 commits into
python:mainfrom
hugovk:argparse

Conversation

@hugovk

@hugovk hugovk commented Aug 5, 2026

Copy link
Copy Markdown
Member

There's a lot of custom code for the CLI handling, which we can replace with argparse.

This saves us about 150 lines of code, and we get colour help, plus I've added backticks in some help messages for "code" formatting as well.

Right now, blurb has both subcommand and option versions of help and version:

blurb help
blurb -h
blurb --help

blurb version
blurb -V
blurb --version

This PR deprecates the subcommands in favour of the more ususal options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant