From a746ad8757d70d51ef9cbba18674ffd66d925a42 Mon Sep 17 00:00:00 2001 From: Gareth Evans Date: Tue, 25 Jun 2013 15:26:14 -0700 Subject: [PATCH] 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 --- src/workflow/ArcanistLiberateWorkflow.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.43.0