lib/jazzy/config.rb in jazzy-0.2.0 vs lib/jazzy/config.rb in jazzy-0.2.1

- old
+ new

@@ -26,10 +26,11 @@ attr_accessor :skip_undocumented attr_accessor :podspec attr_accessor :docset_icon attr_accessor :docset_path attr_accessor :source_directory + attr_accessor :excluded_files def initialize PodspecDocumenter.configure(self, Dir['*.podspec{,.json}'].first) self.output = Pathname('docs') self.xcodebuild_arguments = [] @@ -40,10 +41,11 @@ self.docset_platform = 'jazzy' self.version = '1.0' self.min_acl = SourceDeclaration::AccessControlLevel.public self.skip_undocumented = false self.source_directory = Pathname.pwd + self.excluded_files = [] end def podspec=(podspec) @podspec = PodspecDocumenter.configure(self, podspec) end @@ -160,9 +162,14 @@ end opt.on('--readme FILEPATH', 'The path to a markdown README file') do |readme| config.readme_path = Pathname(readme) + end + + opt.on('-e', '--exclude file1,file2,…fileN', Array, + 'Files to be excluded from documentation') do |files| + config.excluded_files = files end opt.on('-v', '--version', 'Print version number') do puts 'jazzy version: ' + Jazzy::VERSION exit