Skip to content

Commit

Permalink
dvc: std/update --tragets options (#5193)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel authored Jan 4, 2021
1 parent 7df53e5 commit 19606ba
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion dvc/command/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ def add_parser(subparsers, parent_parser):
"--targets",
nargs="*",
help=(
"Limit command scope to these tracked files or directories. "
"Specific DVC-tracked files to compare. "
"Accepts one or more file paths."
),
metavar="<paths>",
).complete = completion.FILE
diff_parser.add_argument(
"a_rev",
Expand Down
7 changes: 5 additions & 2 deletions dvc/command/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,11 @@ def add_parser(subparsers, parent_parser):
"--targets",
nargs="*",
help=(
"Limit command scope to these metrics files. Using -R, "
"directories to search metrics files in can also be given."
"Specific metrics file(s) to compare "
"(even if not found as `metrics` in `dvc.yaml`). "
"Using -R, directories to search metrics files in "
"can also be given."
"Shows all tracked metrics by default.",
),
metavar="<paths>",
).complete = completion.FILE
Expand Down
8 changes: 6 additions & 2 deletions dvc/command/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ def add_parser(subparsers, parent_parser):
params_diff_parser.add_argument(
"--targets",
nargs="*",
help="Limit command scope to these params files.",
metavar="<path>",
help=(
"Specific params file(s) to compare "
"(even if not found as `params` in `dvc.yaml`). "
"Shows all tracked params by default.",
),
metavar="<paths>",
).complete = completion.FILE
params_diff_parser.add_argument(
"--all",
Expand Down
10 changes: 6 additions & 4 deletions dvc/command/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,12 @@ def add_parser(subparsers, parent_parser):
plots_diff_parser.add_argument(
"--targets",
nargs="*",
help="Files to visualize (supports any file, "
"even when not found as `plots` in `dvc.yaml`). "
"Shows all plots by default.",
metavar="<path>",
help=(
"Specific plots file(s) to visualize "
"(even if not found as `plots` in `dvc.yaml`). "
"Shows all tracked plots by default.",
),
metavar="<paths>",
).complete = completion.FILE
plots_diff_parser.add_argument(
"-e",
Expand Down

0 comments on commit 19606ba

Please sign in to comment.