← Back to issue list

feat(dispatcher): add an option to disallow abbreviated options

View original Github issue

Metadata

Project
craft-cli
Number
#519
Type
pull request
State
open
Author
18Abhinav07
Labels
—
Created
Updated
Closed
—

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Fixes #261 Adds `allow_abbrev` to `Dispatcher` and passes it to the command parser. It defaults to `True`, so nothing changes unless an app opts in. Global options are already matched exactly, so only the command parser needed it. I ran ruff, ty, codespell and the full test suite in a Linux container rather than `make lint && make test`. All clean: 918 passed, 2 skipped, same as main. --- - [x] I've followed the [contribution guidelines](https://github.com/canonical/craft-cli/blob/main/CONTRIBUTING.md). - [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [ ] I've successfully run `make lint && make test`. - [x] I've added or updated any relevant documentation. - [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing. - [x] I've updated the relevant release notes.

Evaluation history

No evaluation history available.

Update history

Date Change
updated
created

Related issues

No embedding available for this issue yet. Run scripts/run_llm.py evaluate to enable similarity search.