Improve readability
This commit is contained in:
parent
4b358fc713
commit
133b9382f0
@ -8,9 +8,9 @@ module Tapioca
|
|||||||
module Compilers
|
module Compilers
|
||||||
class Args < Tapioca::Dsl::Compiler
|
class Args < Tapioca::Dsl::Compiler
|
||||||
GLOBAL_OPTIONS = T.let(
|
GLOBAL_OPTIONS = T.let(
|
||||||
Homebrew::CLI::Parser.global_options.map { _1.slice(0, 2) }.flatten
|
Homebrew::CLI::Parser.global_options.map do |short_option, long_option, _|
|
||||||
.map { "#{Homebrew::CLI::Parser.option_to_name(_1)}?" }.freeze,
|
[short_option, long_option].map { "#{Homebrew::CLI::Parser.option_to_name(_1)}?" }
|
||||||
T::Array[String],
|
end.flatten.freeze, T::Array[String]
|
||||||
)
|
)
|
||||||
|
|
||||||
# This is ugly, but we're moving to a new interface that will use a consistent DSL
|
# This is ugly, but we're moving to a new interface that will use a consistent DSL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user