lib/brief/cli/write.rb in brief-1.12.0 vs lib/brief/cli/write.rb in brief-1.12.1

- old
+ new

@@ -5,11 +5,11 @@ # TODO # We could potential query the available model classes we are aware of # and determine which CLI arguments those model classes may ask for. c.action do |args, options| options.default(root: Pathname(Brief.pwd)) - briefcase = Brief.case = Brief::Briefcase.new(root: Pathname(args.first || options.root)) - schema_map = briefcase.schema_map(true) + briefcase = Brief.case = Brief::Briefcase.new(root: options.root) + schema_map = briefcase.schema_map() type_alias = args.first model_class = schema_map.fetch(type_alias) do raise "Unknown model type: #{ type_alias }. Available types are: #{ schema_map.keys.join(',') }"