From: Gareth Evans Date: Tue, 25 Jun 2013 22:26:14 +0000 (-0700) Subject: Update some output based on flag being set X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a746ad8757d70d51ef9cbba18674ffd66d925a42;p=arcanist.git Update some output based on flag being set Summary: Makes sense now Test Plan: Get someone else to test it Reviewers: epriestley CC: aran, Korvin Maniphest Tasks: T3342 Differential Revision: https://secure.phabricator.com/D6307 --- diff --git a/src/workflow/ArcanistLiberateWorkflow.php b/src/workflow/ArcanistLiberateWorkflow.php index 28d48ccf..509780f9 100644 --- a/src/workflow/ArcanistLiberateWorkflow.php +++ b/src/workflow/ArcanistLiberateWorkflow.php @@ -206,11 +206,14 @@ EOTEXT } echo "Creating new libphutil library in '{$path}'.\n"; - echo "Choose a name for the new library.\n"; + do { $name = $this->getArgument("library-name"); if ($name === null) { + echo "Choose a name for the new library.\n"; $name = phutil_console_prompt('What do you want to name this library?'); + } else { + echo "Using library name {$name}.\n"; } if (preg_match('/^[a-z-]+$/', $name)) { break;