Skip to content

List pie styles by name in the --style invalid choice error - #1982

Open
56steve wants to merge 1 commit into
httpie:masterfrom
56steve:fix/style-choices-pie-names
Open

56steve wants to merge 1 commit into
httpie:masterfrom
56steve:fix/style-choices-pie-names

Conversation

@56steve

@56steve 56steve commented Oct 23, 2026

Copy link
Copy Markdown

Running http --offline --style=nope pie.dev printed PieStyle.UNIVERSAL, PieStyle.DARK, PieStyle.LIGHT in the "choose from" list instead of pie, pie-dark and pie-light. The bundled style set was being extended with the enum members themselves. I now add their string values, and added a regression test that checks the error message lists the three names.

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