Skip to content

run: make --name a regular argument and allow multiple args for -d/-o #4172

@jorgeorpinel

Description

@jorgeorpinel

The current minimal use of dvc run requires both --name/-n (option) and a command (argument). I believe -n is in fact one of the few or maybe the only required option in all of our commands. How about make it into a proper argument?

$ dvc run [--options] <name> <command>

E.g.

$ dvc run train -d data -d train.py -o model python train.py

We'd may need to keep -n around (as an option to the name arg) for backward compatibility, though.


Another idea is to allow -d/--deps and -o/--outs to accept several option args, to avoid repeating the flags. This already applies to -p/--params, via commas.

E.g.

$ dvc run featurize \
       -d data/clean,feats.py \
       -p f.range,f.limit \
       -o data/feats,data/map.csv \
          /feats.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionrequires active participation to reach a conclusionenhancementEnhances DVC

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions