mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-30 23:10:41 +01:00
diff: --json -> --show-json
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user