lib/brief/cli/schema.rb in brief-1.11.5 vs lib/brief/cli/schema.rb in brief-1.11.6
- old
+ new
@@ -1,12 +1,12 @@
command 'schema' do |c|
c.syntax = "brief schema"
c.description = "view information about the schema"
- c.option '--all-models', 'Include all models, not just those that have documents'
+ c.option '--existing-models', 'Include all models, not just those that have documents'
c.action do |args, options|
- schema_map = Brief.case(true).schema_map(options.all_models)
+ schema_map = Brief.case(true).schema_map(!!!options.existing_models)
output = if args.empty?
schema_map.to_json
else
detail = schema_map.fetch(args.first.downcase, nil)