42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/sdoc/merge.rb', line 42
def parse_options(options)
opts = OptionParser.new do |opt|
opt.banner = "Usage: sdoc-merge [options] directories"
opt.on("-n", "--names [NAMES]", "Names of merged repositories. Comma separated") do |v|
@names = v.split(',').map{|name| name.strip }
end
opt.on("-o", "--op [DIRECTORY]", "Set the output directory") do |v|
@op_dir = v
end
opt.on("-t", "--title [TITLE]", "Set the title of merged file") do |v|
@title = v
end
opt.on("-u", "--urls [URLS]", "Paths to merged docs. If you",
"set this files and classes won't be actualy",
"copied to merged build") do |v|
@urls = v.split(' ').map{|name| name.strip }
end
end
opts.parse! options
@template_dir = Pathname.new(RDoc::Options.new.template_dir_for 'merge')
@directories = options.dup
end
|