Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dvc: std/update --targets options #5193

Merged
merged 1 commit into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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