MCPcopy
hub / github.com/treeverse/dvc / check_arguments

Method check_arguments

dvc/commands/queue/remove.py:14–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 """Remove exp in queue."""
13
14 def check_arguments(self):
15 clear_flag = any(
16 [
17 self.args.all,
18 self.args.queued,
19 self.args.failed,
20 self.args.success,
21 ]
22 )
23 if not (clear_flag ^ bool(self.args.task)):
24 raise InvalidArgumentError(
25 "Either provide an `tasks` argument, or use the "
26 "`--all`, `--queued`, `--failed`, `--success` flag."
27 )
28
29 def run(self):
30 self.check_arguments()

Callers 1

runMethod · 0.95

Calls 1

Tested by

no test coverage detected