Method: RDoc::Generator::SDoc.setup_options
- Defined in:
- lib/sdoc/generator.rb
.setup_options(options) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/sdoc/generator.rb', line 52 def self.() opt = .option_parser opt.separator nil opt.separator "SDoc generator options:" opt.separator nil opt.on("--github", "-g", "Generate links to github.") do |value| .github = true end opt.separator nil opt.on("--version", "-v", "Output current version") do puts SDoc::VERSION exit end end |