summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-27 12:09:50 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-27 12:09:50 +0000
commit8827c1d18473a3d84db181c89212975418a25e37 (patch)
tree3f16c4b02b0b46fb2f501a6d5e9fc0f93f1a406f /bin
parent43b35a88ca54379d8df4dad84b5a84f9eecae3f2 (diff)
downloadgitlab-ce-8827c1d18473a3d84db181c89212975418a25e37.tar.gz
Add latest changes from gitlab-org/gitlab@master
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|