mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-14 07:18:27 +01:00
Merge pull request #1045 from efiop/master
dvc: print command specific help
This commit is contained in:
+5
-1
@@ -785,7 +785,11 @@ def parse_args(argv=None):
|
||||
cwd = os.curdir
|
||||
path = os.path.join(cwd, 'Dvcfile')
|
||||
if not os.path.exists(path):
|
||||
parser.error("default target '{}' does not exist.".format(path))
|
||||
msg = "default target '{}' does not exist.".format(path)
|
||||
if issubclass(args.func, CmdRepro):
|
||||
repro_parser.error(msg)
|
||||
elif issubclass(args.func, CmdPipelineShow):
|
||||
pipeline_show_parser.error(msg)
|
||||
args.targets = ['Dvcfile']
|
||||
|
||||
return args
|
||||
|
||||
Reference in New Issue
Block a user