Skip to content

Commit 5559ff6

Browse files
committed
metrics: update help output to indicate supported types
per #3409 and for #3572
1 parent 2632344 commit 5559ff6

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

dvc/command/metrics.py

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ def add_parser(subparsers, parent_parser):
194194
"-t",
195195
"--type",
196196
help=(
197-
"Type of metrics (json/tsv/htsv/csv/hcsv). "
197+
"Type of metrics (json/yaml). "
198198
"It can be detected by the file extension automatically. "
199199
"Unsupported types will be treated as raw."
200200
),
201201
metavar="<type>",
202202
)
203203
metrics_show_parser.add_argument(
204-
"-x", "--xpath", help="json/tsv/htsv/csv/hcsv path.", metavar="<path>",
204+
"-x", "--xpath", help="json/yaml path.", metavar="<path>",
205205
)
206206
metrics_show_parser.add_argument(
207207
"-a",
@@ -244,13 +244,10 @@ def add_parser(subparsers, parent_parser):
244244
formatter_class=argparse.RawDescriptionHelpFormatter,
245245
)
246246
metrics_add_parser.add_argument(
247-
"-t",
248-
"--type",
249-
help="Type of metrics (raw/json/tsv/htsv/csv/hcsv).",
250-
metavar="<type>",
247+
"-t", "--type", help="Type of metrics (json/yaml).", metavar="<type>",
251248
)
252249
metrics_add_parser.add_argument(
253-
"-x", "--xpath", help="json/tsv/htsv/csv/hcsv path.", metavar="<path>",
250+
"-x", "--xpath", help="json/yaml path.", metavar="<path>",
254251
)
255252
metrics_add_parser.add_argument("path", help="Path to a metric file.")
256253
metrics_add_parser.set_defaults(func=CmdMetricsAdd)
@@ -264,13 +261,10 @@ def add_parser(subparsers, parent_parser):
264261
formatter_class=argparse.RawDescriptionHelpFormatter,
265262
)
266263
metrics_modify_parser.add_argument(
267-
"-t",
268-
"--type",
269-
help="Type of metrics (raw/json/tsv/htsv/csv/hcsv).",
270-
metavar="<type>",
264+
"-t", "--type", help="Type of metrics (json/yaml).", metavar="<type>",
271265
)
272266
metrics_modify_parser.add_argument(
273-
"-x", "--xpath", help="json/tsv/htsv/csv/hcsv path.", metavar="<path>",
267+
"-x", "--xpath", help="json/yaml path.", metavar="<path>",
274268
)
275269
metrics_modify_parser.add_argument("path", help="Path to a metric file.")
276270
metrics_modify_parser.set_defaults(func=CmdMetricsModify)
@@ -316,14 +310,14 @@ def add_parser(subparsers, parent_parser):
316310
"-t",
317311
"--type",
318312
help=(
319-
"Type of metrics (json/tsv/htsv/csv/hcsv). "
313+
"Type of metrics (json/yaml). "
320314
"It can be detected by the file extension automatically. "
321315
"Unsupported types will be treated as raw."
322316
),
323317
metavar="<type>",
324318
)
325319
metrics_diff_parser.add_argument(
326-
"-x", "--xpath", help="json/tsv/htsv/csv/hcsv path.", metavar="<path>",
320+
"-x", "--xpath", help="json/yaml path.", metavar="<path>",
327321
)
328322
metrics_diff_parser.add_argument(
329323
"-R",

0 commit comments

Comments
 (0)