Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/feature-flag3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/feature-flag b/bin/feature-flag
index 46d93a11ebd..d4ab295b30c 100755
--- a/bin/feature-flag
+++ b/bin/feature-flag
@@ -118,6 +118,9 @@ class FeatureFlagOptionParser
end
def read_type
+ # if there's only one type, do not ask, return
+ return TYPES.first.first if TYPES.one?
+
$stdout.puts ">> Please specify the type of your feature flag:"
$stdout.puts
TYPES.each do |type, data|