Skip to content

Commit 17af5cf

Browse files
authored
made listfields option naming consistent
1 parent a80ac5b commit 17af5cf

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
@@ -126,15 +126,15 @@ def load(filename, key, input_format, encoding="utf-8"):
126126
help="Use streaming mode for very large CSV/TSV files (requires files to be sorted by key).",
127127
)
128128
@click.option(
129-
"--list-fields",
129+
"--listfields",
130130
is_flag=True,
131131
help="List available fields/columns in the input files and exit.",
132132
)
133133
@click.version_option()
134134
def cli(
135135
previous, current, key, input_format,
136136
show_unchanged, encoding, show_time, output, output_file, output_path,
137-
fields, ignorefields, streaming, list_fields
137+
fields, ignorefields, streaming, listfields
138138
):
139139
"""
140140
Compare the differences between two CSV or JSON files.
@@ -147,7 +147,7 @@ def cli(
147147
raise click.ClickException(f"Unsupported file format: {detected_format}")
148148

149149
# List fields and exit
150-
if list_fields:
150+
if listfields:
151151
try:
152152
if detected_format == "json":
153153
with open(previous, encoding=encoding) as f:

0 commit comments

Comments
 (0)