From 8311905160783a99f7145e46db88e460a7e68dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Redzy=C5=84ski?= Date: Wed, 20 May 2020 14:21:35 +0200 Subject: [PATCH 1/2] plots: point template help info to manual --- dvc/command/plots.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/dvc/command/plots.py b/dvc/command/plots.py index 2de075cd19..20a1f4617b 100644 --- a/dvc/command/plots.py +++ b/dvc/command/plots.py @@ -4,6 +4,7 @@ from dvc.command.base import CmdBase, append_doc_link, fix_subparsers from dvc.exceptions import DvcException +from dvc.utils import format_link logger = logging.getLogger(__name__) @@ -123,7 +124,12 @@ def add_parser(subparsers, parent_parser): "--template", nargs="?", default=None, - help="File to be injected with data.", + help=( + "Special JSON or HTML schema to inject with the data. " + "See {}".format( + format_link("https://man.dvc.org/plots#plot-templates") + ) + ), ) plots_show_parser.add_argument( "-o", "--out", default=None, help="Destination path to save plots to.", @@ -182,7 +188,12 @@ def add_parser(subparsers, parent_parser): "--template", nargs="?", default=None, - help="File to be injected with data.", + help=( + "Special JSON or HTML schema to inject with the data. " + "See {}".format( + format_link("https://man.dvc.org/plots#plot-templates") + ) + ), ) plots_diff_parser.add_argument( "--targets", From 66d5c3dbdf97b4b30f376cc26974072292a94f29 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 22 May 2020 00:52:58 +0300 Subject: [PATCH 2/2] Update dvc/command/plots.py Co-authored-by: Jorge Orpinel --- dvc/command/plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/command/plots.py b/dvc/command/plots.py index 20a1f4617b..dbab8efd45 100644 --- a/dvc/command/plots.py +++ b/dvc/command/plots.py @@ -125,7 +125,7 @@ def add_parser(subparsers, parent_parser): nargs="?", default=None, help=( - "Special JSON or HTML schema to inject with the data. " + "Special JSON or HTML schema file to inject with the data. " "See {}".format( format_link("https://man.dvc.org/plots#plot-templates") )