summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2018-03-27 13:04:30 (GMT)
committerJon Pugh2018-03-27 13:04:30 (GMT)
commit19dc55b309e59261bcbd982b063b7928fdc5a084 (patch)
tree22f245bbd32ed79beb69299f18fbdf2f5c503ef7
parent364da11dd69ccda7be2e1568216171048edb27da (diff)
handle save command, with no context name specified.
-rw-r--r--src/Provision/Command.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Provision/Command.php b/src/Provision/Command.php
index a00e9a5..2dfe317 100644
--- a/src/Provision/Command.php
+++ b/src/Provision/Command.php
@@ -96,7 +96,9 @@ abstract class Command extends BaseCommand
}
// If context_name is not specified, ask for it.
- elseif ($this::CONTEXT_REQUIRED && empty($this->input->getOption('context'))) {
+ elseif (($this::CONTEXT_REQUIRED && empty($this->input->getOption('context')))
+ || ($this->getName() == 'save' && empty($this->input->getOption('context')))
+ ) {
$this->askForContext();
$this->input->setOption('context', $this->context_name);