From af8e9ff17af1af615c33ae2563d34c920e247a37 Mon Sep 17 00:00:00 2001 From: pared Date: Mon, 25 Mar 2019 17:07:41 +0100 Subject: [PATCH] run: add --outs-persist and --outs-persist-no-cache to obligatory arguments --- dvc/command/run.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dvc/command/run.py b/dvc/command/run.py index 2ed9e6862..1c9185a5f 100644 --- a/dvc/command/run.py +++ b/dvc/command/run.py @@ -18,12 +18,15 @@ class CmdRun(CmdBase): self.args.outs_no_cache, self.args.metrics, self.args.metrics_no_cache, + self.args.outs_persist, + self.args.outs_persist_no_cache, self.args.command, ] ): # pragma: no cover logger.error( - "too few arguments. Specify at least one: '-d', " - "'-o', '-O', '-m', '-M', 'command'." + "too few arguments. Specify at least one: '-d', '-o', '-O'," + " '-m', '-M', '--outs-persist', '--outs-persist-no-cache'," + " 'command'." ) return 1