diff: --json -> --show-json

This commit is contained in:
Mr. Outis
2020-01-27 12:53:24 -06:00
parent 2370cb12b3
commit fced1718cc
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ class CmdDiff(CmdBase):
if not any(diff.values()):
return 0
if self.args.json:
if self.args.show_json:
res = json.dumps(diff)
else:
res = self._format(diff, include_checksums=self.args.checksums)
@@ -136,7 +136,7 @@ def add_parser(subparsers, parent_parser):
),
)
diff_parser.add_argument(
"--json",
"--show-json",
help="Format the output into a JSON",
action="store_true",
default=False,