The -R option of dvc repro has no effect when no targets that are directories are also given. For example, dvc repro -R is the same as just dvc repro. For UI and consistency improvement I propose
-
-
- (This may already be the case) if the target directory has no .dvc files or dvc.yaml, print a separate warning about that?
UPDATE: See #4292 (comment) below for an alternative solution — maybe easier.
THE REMAINING TEXT HAS BEEN EXTRACTED TO #4393 (so stop reading)
Separately (but related), the targets param accepted by dvc repro is described (in its help output) as Stages to reproduce. 'dvc.yaml' by default. This message is confusing as dvc.yaml is not a stage. In docs we're using Stage or .dvc file to reproduce but that's not correct either because apparently paths to dvc.yaml files are also accepted.
- Should we use
Stage or path to dvc.yaml or .dvc file to reproduce instead?
- ^ still doesn't cover the case of accepting directory paths with -R, but that we can explain in that argument's description:
- -R, --recursive Reproduce all stages in the specified directory.
+ -R, --recursive Reproduce all stages in the specified directories.
+ These can be given as `targets` arguments.
and I'll explain this special case further in the cmd ref. Options.
The
-Roption ofdvc reprohas no effect when notargetsthat are directories are also given. For example,dvc repro -Ris the same as justdvc repro. For UI and consistency improvement I proposetargetsare enforced when-Ris used, or at least WARN msg is printed otherwise so the user is aware he might be expecting something that's not being done.targetsare given, at least one of them should be an existing directory path, or the above enforcement/warning will happen.THE REMAINING TEXT HAS BEEN EXTRACTED TO #4393 (so stop reading)
Separately (but related), the
targetsparam accepted bydvc reprois described (in its help output) asStages to reproduce. 'dvc.yaml' by default.This message is confusing as dvc.yaml is not a stage. In docs we're usingStage or .dvc file to reproducebut that's not correct either because apparently paths to dvc.yaml files are also accepted.Stage or path to dvc.yaml or .dvc file to reproduceinstead?and I'll explain this special case further in the cmd ref. Options.