Loading lib/jsduck/options/parser.rb +1 −7 Original line number Diff line number Diff line Loading @@ -72,13 +72,7 @@ module JsDuck "", "- full - docs and metadata for class and its members.", "- examples - inline examples from classes and guides.") do |format| export_type = format.to_sym if [:full, :examples].include?(export_type) @opts.export = export_type else Logger.fatal("Unsupported export type: '#{export_type}'") exit(1) end @opts.export = format.to_sym end optparser.on('--builtin-classes', Loading lib/jsduck/options/validator.rb +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ module JsDuck end def valid_export_format if ![nil, :full, :api, :examples].include?(@opts.export) if ![nil, :full, :examples].include?(@opts.export) fatal("Unknown export format: #{@export}") end end Loading Loading
lib/jsduck/options/parser.rb +1 −7 Original line number Diff line number Diff line Loading @@ -72,13 +72,7 @@ module JsDuck "", "- full - docs and metadata for class and its members.", "- examples - inline examples from classes and guides.") do |format| export_type = format.to_sym if [:full, :examples].include?(export_type) @opts.export = export_type else Logger.fatal("Unsupported export type: '#{export_type}'") exit(1) end @opts.export = format.to_sym end optparser.on('--builtin-classes', Loading
lib/jsduck/options/validator.rb +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ module JsDuck end def valid_export_format if ![nil, :full, :api, :examples].include?(@opts.export) if ![nil, :full, :examples].include?(@opts.export) fatal("Unknown export format: #{@export}") end end Loading