Class: ApiTommy::Generator
- Inherits:
-
Object
- Object
- ApiTommy::Generator
show all
- Defined in:
- lib/api_tommy/generator.rb
Class Method Summary
collapse
Class Method Details
.setup_options(options) ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/api_tommy/generator.rb', line 5
def self.setup_options(options)
options.dry_run = true
op = options.option_parser
op.on("--filename FILENAME", String, "The output filename") do |filename|
options.filename = filename.gsub(/\s+/, "-")
unless options.filename.end_with?(".md")
options.filename = "#{options.filename}.md"
end
end
op.on("--header HEADER", String, "The header filename") do ||
options. =
end
op.on("--footer FOOTER", String, "The footer filename") do ||
options. =
end
end
|