Skip to content

Commit

Permalink
metrics, plots: update cmd targets help (#4620)
Browse files Browse the repository at this point in the history
  • Loading branch information
pared authored Sep 30, 2020
1 parent b0dbcdc commit ab22118
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dvc/command/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions dvc/command/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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="<path>",
).complete = completion.FILE
plots_diff_parser.add_argument(
Expand Down

0 comments on commit ab22118

Please sign in to comment.