diff options
-rwxr-xr-x | bin/secpick | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/secpick b/bin/secpick index 867ee537612..76ae231e913 100755 --- a/bin/secpick +++ b/bin/secpick @@ -33,7 +33,8 @@ end parser.parse! -abort("Missing options. Use #{$0} --help to see the list of options available") if options.values.include?(nil) +abort("Missing options. Use #{$0} --help to see the list of options available".red) if options.values.include?(nil) +abort("Wrong version format #{options[:version].bold}".red) unless options[:version] =~ /\A\d*\-\d*\Z/ branch = [BRANCH_PREFIX, options[:branch], options[:version]].join('-').freeze stable_branch = "#{options[:version]}-#{STABLE_BRANCH_SUFFIX}".freeze |