Skip to content

Commit 19606ba

Browse files
authored
dvc: std/update --tragets options (#5193)
to match iterative/dvc.org/pull/2062
1 parent 7df53e5 commit 19606ba

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

dvc/command/diff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ def add_parser(subparsers, parent_parser):
174174
"--targets",
175175
nargs="*",
176176
help=(
177-
"Limit command scope to these tracked files or directories. "
177+
"Specific DVC-tracked files to compare. "
178178
"Accepts one or more file paths."
179179
),
180+
metavar="<paths>",
180181
).complete = completion.FILE
181182
diff_parser.add_argument(
182183
"a_rev",

dvc/command/metrics.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,11 @@ def add_parser(subparsers, parent_parser):
280280
"--targets",
281281
nargs="*",
282282
help=(
283-
"Limit command scope to these metrics files. Using -R, "
284-
"directories to search metrics files in can also be given."
283+
"Specific metrics file(s) to compare "
284+
"(even if not found as `metrics` in `dvc.yaml`). "
285+
"Using -R, directories to search metrics files in "
286+
"can also be given."
287+
"Shows all tracked metrics by default.",
285288
),
286289
metavar="<paths>",
287290
).complete = completion.FILE

dvc/command/params.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ def add_parser(subparsers, parent_parser):
9898
params_diff_parser.add_argument(
9999
"--targets",
100100
nargs="*",
101-
help="Limit command scope to these params files.",
102-
metavar="<path>",
101+
help=(
102+
"Specific params file(s) to compare "
103+
"(even if not found as `params` in `dvc.yaml`). "
104+
"Shows all tracked params by default.",
105+
),
106+
metavar="<paths>",
103107
).complete = completion.FILE
104108
params_diff_parser.add_argument(
105109
"--all",

dvc/command/plots.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ def add_parser(subparsers, parent_parser):
158158
plots_diff_parser.add_argument(
159159
"--targets",
160160
nargs="*",
161-
help="Files to visualize (supports any file, "
162-
"even when not found as `plots` in `dvc.yaml`). "
163-
"Shows all plots by default.",
164-
metavar="<path>",
161+
help=(
162+
"Specific plots file(s) to visualize "
163+
"(even if not found as `plots` in `dvc.yaml`). "
164+
"Shows all tracked plots by default.",
165+
),
166+
metavar="<paths>",
165167
).complete = completion.FILE
166168
plots_diff_parser.add_argument(
167169
"-e",

0 commit comments

Comments
 (0)