mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
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:
+4
-7
@@ -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)
|
||||
|
||||
@@ -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."
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user