Skip to content

Commit d190900

Browse files
committed
rename json parameter
1 parent 78eb47d commit d190900

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mergin/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,9 @@ def reset(ctx):
656656
@cli.command()
657657
@click.argument("namespace")
658658
@click.argument("project")
659-
@click.option("--fmt_json", is_flag=True, default=False, help="Output in JSON format")
659+
@click.option("--json", is_flag=True, default=False, help="Output in JSON format")
660660
@click.pass_context
661-
def list_files(ctx, namespace, project,fmt_json):
661+
def list_files(ctx, namespace, project,json):
662662
"""List files in a project."""
663663

664664
mc = ctx.obj["client"]
@@ -669,7 +669,7 @@ def list_files(ctx, namespace, project,fmt_json):
669669
project_info = mc.project_info(namespace + "/" + project)
670670
project_files = project_info["files"]
671671

672-
if fmt_json:
672+
if json:
673673
print(project_files)
674674
else:
675675
click.echo("Fetched {} files .".format(len(project_files)))

0 commit comments

Comments
 (0)