plot: update some output strings (#3759)

* plot: update datafile desc.

* plot: link to cmd ref in output

* plot: update --stdout desc
per https://github.com/iterative/dvc/pull/3577#pullrequestreview-407036181

* plot: a few more output string updates
per https://github.com/iterative/dvc/pull/3759#pullrequestreview-409011291
and https://github.com/iterative/dvc.org/pull/1283
This commit is contained in:
Jorge Orpinel
2020-05-12 16:52:06 +03:00
committed by GitHub
parent cc16b28a26
commit 1e7efffe42
2 changed files with 5 additions and 8 deletions
+4 -7
View File
@@ -166,12 +166,12 @@ def add_parser(subparsers, parent_parser):
plot_show_parser.add_argument("--xlab", default=None, help="X axis title.")
plot_show_parser.add_argument("--ylab", default=None, help="Y axis title.")
plot_show_parser.add_argument(
"datafile", nargs="?", default=None, help="Metrics file to visualize.",
"datafile", nargs="?", default=None, help="Metrics file to visualize",
)
plot_show_parser.set_defaults(func=CmdPlotShow)
PLOT_DIFF_HELP = (
"Plot metrics differences between commits in the DVC "
"Plot differences in metrics between commits in the DVC "
"repository, or between the last commit and the workspace."
)
plot_diff_parser = plot_subparsers.add_parser(
@@ -193,7 +193,7 @@ def add_parser(subparsers, parent_parser):
"--datafile",
nargs="?",
default=None,
help="Metrics file to visualize.",
help="Metrics file to visualize",
)
plot_diff_parser.add_argument(
"-f", "--file", default=None, help="Name of the generated file."
@@ -232,9 +232,6 @@ def add_parser(subparsers, parent_parser):
plot_diff_parser.add_argument("--xlab", default=None, help="X axis title.")
plot_diff_parser.add_argument("--ylab", default=None, help="Y axis title.")
plot_diff_parser.add_argument(
"revisions",
nargs="*",
default=None,
help="Git revisions to plot from",
"revisions", nargs="*", default=None, help="Git commits to plot from",
)
plot_diff_parser.set_defaults(func=CmdPlotDiff)
+1 -1
View File
@@ -29,7 +29,7 @@ class PlotDataStructureError(DvcException):
def __init__(self):
super().__init__(
"Plot data extraction failed. Please see "
"documentation for supported data formats."
"https://man.dvc.org/plot for supported data formats."
)