Dvc: metrics show: doesn't support directories

Created on 23 Jul 2019  ยท  5Comments  ยท  Source: iterative/dvc

In the description, the path says that it supports directories, I'm not sure if this is intended.

โฏ dvc metrics show --help
usage: dvc metrics show [-h] [-q | -v] [-t TYPE] [-x XPATH] [-a] [-T] [-R]
                        [path]

Output metric values.
documentation: https://man.dvc.org/metrics-show

positional arguments:
  path                  Path to a metric file or a directory.
bug

All 5 comments

I think it's intended, if -R specified it accepts a directory to look for metric files inside.

@shcheklein, dvc metrics show -R dir works, should we assume -R when a dir is used as input?

It's a good question, @mroutis . It symmetric across all commands that have -R. I would imagine it would a bit dangerous for other commands to adopt the same semantics as you suggested, we would like to preserve the same explicit -R semantics. I would double check though.

@efiop , I think this is not a bug; it is more like an "implicit -R".

Also, I think we can close this issue if we agree on _explicitness over implicitness_ as a "design guideline" of DVC (to stay consistent)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shcheklein picture shcheklein  ยท  3Comments

gregfriedland picture gregfriedland  ยท  3Comments

tc-ying picture tc-ying  ยท  3Comments

mfrata picture mfrata  ยท  3Comments

nik123 picture nik123  ยท  3Comments