@@ 69-75 (lines=7) @@ | ||
66 | ||
67 | return false; |
|
68 | } |
|
69 | if ($this->option('daily')) { |
|
70 | if ($this->option('from') || $this->option('until')) { |
|
71 | $this->error('--daily cannot be combined with --from / --until.'); |
|
72 | ||
73 | return false; |
|
74 | } |
|
75 | } |
|
76 | if ($this->option('from-dump')) { |
|
77 | if ($this->option('from') || $this->option('until') || $this->option('resume') || $this->option('daily')) { |
|
78 | $this->error('--from-dump cannot be combined with other options.'); |
|
@@ 77-81 (lines=5) @@ | ||
74 | } |
|
75 | } |
|
76 | if ($this->option('from-dump')) { |
|
77 | if ($this->option('from') || $this->option('until') || $this->option('resume') || $this->option('daily')) { |
|
78 | $this->error('--from-dump cannot be combined with other options.'); |
|
79 | ||
80 | return false; |
|
81 | } |
|
82 | } |
|
83 | if ($this->option('from')) { |
|
84 | if (!preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $this->option('from'))) { |