lib/tapioca/cli.rb in tapioca-0.14.3 vs lib/tapioca/cli.rb in tapioca-0.14.4

- old
+ new

@@ -138,10 +138,14 @@ option :skip_constant, type: :array, banner: "constant [constant ...]", desc: "Do not generate RBI definitions for the given application constant(s)", default: [] + option :compiler_options, + type: :hash, + desc: "Options to pass to the DSL compilers", + default: {} def dsl(*constant_or_paths) set_environment(options) # Assume anything starting with a capital letter or colon is a class, otherwise a path constants, paths = constant_or_paths.partition { |c| c =~ /\A[A-Z:]/ } @@ -159,9 +163,10 @@ verbose: options[:verbose], number_of_workers: options[:workers], rbi_formatter: rbi_formatter(options), app_root: options[:app_root], halt_upon_load_error: options[:halt_upon_load_error], + compiler_options: options[:compiler_options], } command = if options[:verify] Commands::DslVerify.new(**command_args) elsif options[:list_compilers]