Single character options should not be used in a formula
This commit is contained in:
parent
db04b04135
commit
7adbb1ccb9
@ -92,7 +92,8 @@ class SoftwareSpec
|
|||||||
name = name.to_s
|
name = name.to_s
|
||||||
end
|
end
|
||||||
raise ArgumentError, "option name is required" if name.empty?
|
raise ArgumentError, "option name is required" if name.empty?
|
||||||
raise ArgumentError, "options should not start with dashes" if name.start_with?("-")
|
raise ArgumentError, "option name must be longer than one character" unless name.length > 1
|
||||||
|
raise ArgumentError, "option name must not start with dashes" if name.start_with?("-")
|
||||||
Option.new(name, description)
|
Option.new(name, description)
|
||||||
end
|
end
|
||||||
options << opt
|
options << opt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user