Skip to content

Commit f26409b

Browse files
authored
fix(cli): resolve duplicate -f short option conflict in projects list (#11)
## Summary This PR fixes a duplicate short option (`-f`) conflict in the `projects list` command. Previously: - `--filter` used `-f` - `--format` also used `-f` This caused Click/Typer to emit a warning: > UserWarning: The parameter -f is used more than once. Remove its duplicate as parameters should be unique. Now: - `--filter` uses `-F` --format keeps `-f` (common CLI convention for format) No breaking changes for long options. --- ## Testing - [x] Tested `conviso projects list --help` - [x] Tested with `--filter` - [x] Tested with `--format` - [x] Confirmed warning no longer appears --- ## Before Fix (Warning Example) ![duplicate -f warning](https://github.com/user-attachments/assets/dc8977ce-da6d-40bd-91ba-02fa9e1657f1)
2 parents 3a988a7 + 0341ddb commit f26409b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/conviso/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.7
1+
0.2.8

src/conviso/commands/projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def list_projects(
2222
filters: Optional[List[str]] = typer.Option(
2323
None,
2424
"--filter",
25-
"-f",
25+
"-F",
2626
help="Apply filters in 'field=value' format. Supports aliases (e.g., id=123, name=foo, status=DONE).",
2727
),
2828
sort_by: Optional[str] = typer.Option(

0 commit comments

Comments
 (0)