Skip to content

plots show: targets are required but help output indicates otherwise [qa] #3925

@jorgeorpinel

Description

@jorgeorpinel

Bug Report

Help output indicates targets are optional, but an error is thrown if not provided:

λ dvc plots show -h
usage: dvc plots show [-h] [-q | -v] [-t [TEMPLATE]] [-o OUT] [-x X] [-y Y] [--no-csv-header] [--show-json] [--title TITLE] [--xlab XLAB]
                      [--ylab YLAB]
                      [targets [targets ...]]
...
positional arguments:
  targets               Metrics files to visualize. Shows all plots by default.

λ dvc plots show
ERROR: Datafile or template is not specified.
  • I assume targets are indeed required so they should be printed without [] in the usage, and the param description should not read "Shows all plots by default."
    UPDATE: Improve the error message when there are no plots in the workspace.

    • and update docs (figure out exact behavior first)
  • Also note that the error uses the term "Datafile" which is confusing as it's no longer the name of the argument — Let's probably review this term all over the code base, not just in this one message?

Please provide information about your setup

DVC 1.0.0a6+283718

Metadata

Metadata

Assignees

Labels

bugDid we break something?uiuser interface / interaction

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions