From ab22118cd45614c972218747b8597aef8fe0bbb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Redzy=C5=84ski?= Date: Wed, 30 Sep 2020 03:55:00 +0200 Subject: [PATCH] metrics, plots: update cmd targets help (#4620) --- dvc/command/metrics.py | 3 ++- dvc/command/plots.py | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dvc/command/metrics.py b/dvc/command/metrics.py index fcbb5843a..3c22a0321 100644 --- a/dvc/command/metrics.py +++ b/dvc/command/metrics.py @@ -176,7 +176,8 @@ def add_parser(subparsers, parent_parser): "targets", nargs="*", help=( - "Limit command scope to these metric files. Using -R, " + "Limit command scope to these metric files (supports any file, " + "even when not found as `metrics` in `dvc.yaml`). Using -R, " "directories to search metric files in can also be given." ), ).complete = completion.FILE diff --git a/dvc/command/plots.py b/dvc/command/plots.py index 0174eb018..e100c9189 100644 --- a/dvc/command/plots.py +++ b/dvc/command/plots.py @@ -135,7 +135,9 @@ def add_parser(subparsers, parent_parser): plots_show_parser.add_argument( "targets", nargs="*", - help="Plots files to visualize. Shows all plots by default.", + help="Files to visualize (supports any file, " + "even when not found as `plots` in `dvc.yaml`). " + "Shows all plots by default.", ).complete = completion.FILE _add_props_arguments(plots_show_parser) _add_output_arguments(plots_show_parser) @@ -155,7 +157,9 @@ def add_parser(subparsers, parent_parser): plots_diff_parser.add_argument( "--targets", nargs="*", - help="Plots file to visualize. Shows all plots by default.", + help="Files to visualize (supports any file, " + "even when not found as `plots` in `dvc.yaml`). " + "Shows all plots by default.", metavar="", ).complete = completion.FILE plots_diff_parser.add_argument(