calas-ruby-wsd 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/bin/wsd +6 -2
- data/ruby-wsd.gemspec +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/bin/wsd
CHANGED
@@ -4,7 +4,7 @@ require 'wsd'
|
|
4
4
|
require 'optparse'
|
5
5
|
require 'pp'
|
6
6
|
|
7
|
-
options = {}
|
7
|
+
options = {:style => 'default'}
|
8
8
|
OptionParser.new do |opts|
|
9
9
|
opts.banner = "Usage: wsd [options]"
|
10
10
|
|
@@ -20,6 +20,10 @@ OptionParser.new do |opts|
|
|
20
20
|
options[:outfile] = f
|
21
21
|
end
|
22
22
|
|
23
|
+
opts.on("-s [STYLE]", "--style [STYLE]", "Diagram Style") do |s|
|
24
|
+
options[:style] = s
|
25
|
+
end
|
26
|
+
|
23
27
|
opts.on("--all-styles", "Show all available styles") do |s|
|
24
28
|
options[:show_styles] = s
|
25
29
|
end
|
@@ -31,5 +35,5 @@ if options[:show_styles]
|
|
31
35
|
exit
|
32
36
|
end
|
33
37
|
|
34
|
-
d = Wsd.new(File.read(options[:file]))
|
38
|
+
d = Wsd.new(File.read(options[:file]), options[:style])
|
35
39
|
d.write(options[:outfile])
|
data/ruby-wsd.gemspec
CHANGED