Skip to content

Commit 1cc7cf5

Browse files
docs: clarify --fields only works with --json #fixes #6
1 parent ff83817 commit 1cc7cf5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/beans/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def main(
7272
db: Annotated[str | None, typer.Option(help="Path to SQLite database")] = None,
7373
json_output: Annotated[bool, typer.Option("--json", help="Output as JSON")] = False,
7474
dry_run: Annotated[bool, typer.Option("--dry-run", help="Show what would happen without writing")] = False,
75-
fields: Annotated[str | None, typer.Option("--fields", help="Comma-separated list of fields to include")] = None,
75+
fields: Annotated[
76+
str | None, typer.Option("--fields", help="Comma-separated list of fields to include (only with --json)")
77+
] = None,
7678
):
7779
ctx.obj = Config(db=db, json=json_output, dry_run=dry_run, fields=fields.split(",") if fields else None)
7880

0 commit comments

Comments
 (0)