29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/sdoc/merge.rb', line 29
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
@directories = options.dup
end
|