Skip to content

Commit 53cabbb

Browse files
authored
Changed --output-file to --filename
1 parent 8d82274 commit 53cabbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

db_diff/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@click.command(
77
context_settings={"help_option_names": ["-h", "--help"]},
88
help="Compare the differences between two CSV or JSON files.",
9-
epilog="Example: db-diff old.csv new.csv --key=Id --output=jsonfile --output-file=diff.json",
9+
epilog="Example: db-diff old.csv new.csv --key=Id --output=jsonfile --filename=diff.json",
1010
)
1111
@click.argument(
1212
"previous",
@@ -56,7 +56,7 @@
5656
help="Output format. Available: (readable|json|jsonfile) (default: readable)",
5757
)
5858
@click.option(
59-
"--output-file",
59+
"--filename",
6060
type=click.Path(file_okay=True, dir_okay=False, writable=True, resolve_path=True),
6161
default=None,
6262
help="File to write JSON output to (only used with --output=jsonfile)",
@@ -80,7 +80,7 @@ def cli(
8080

8181
if output == "jsonfile" and not output_file:
8282
raise click.UsageError(
83-
"--output-file must be specified when --output=jsonfile",
83+
"--filename must be specified when --output=jsonfile (example: --filename=diff.json)",
8484
ctx=click.get_current_context(),
8585
)
8686

0 commit comments

Comments
 (0)