diff/metics diff: update argument descriptions

to match https://github.com/iterative/dvc.org/pull/933
This commit is contained in:
Jorge Orpinel
2020-01-27 13:43:43 -06:00
parent 242b5b18f6
commit bfa1d3e188
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -157,13 +157,13 @@ def add_parser(subparsers, parent_parser):
),
)
diff_parser.add_argument(
"a_ref", help="Git reference from which diff calculates"
"a_ref", help="Git reference from which the diff begins"
)
diff_parser.add_argument(
"b_ref",
help=(
"Git reference until which diff calculates, if omitted "
"diff shows the difference between current HEAD and a_ref"
"Git reference until which the diff ends. "
"If omitted, `HEAD` (latest commit) is used."
),
nargs="?",
)
+5 -5
View File
@@ -273,7 +273,7 @@ def add_parser(subparsers, parent_parser):
metrics_remove_parser.add_argument("path", help="Path to a metric file.")
metrics_remove_parser.set_defaults(func=CmdMetricsRemove)
METRICS_DIFF_HELP = "Output metric values."
METRICS_DIFF_HELP = "Calculates the numeric difference between metrics."
metrics_diff_parser = metrics_subparsers.add_parser(
"diff",
parents=[parent_parser],
@@ -285,16 +285,16 @@ def add_parser(subparsers, parent_parser):
"a_ref",
nargs="?",
help=(
"Git reference from which diff is calculated. "
"If omitted `HEAD`(latest commit) is used."
"Git reference from which the diff begins. "
"If omitted, `HEAD` (latest commit) is used."
),
)
metrics_diff_parser.add_argument(
"b_ref",
nargs="?",
help=(
"Git reference to which diff is calculated. "
"If omitted current working tree is used."
"Git reference until which the diff ends. "
"If omitted, the current workspace is used instead."
),
)
metrics_diff_parser.add_argument(