laser-cutter 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/laser-cutter +3 -3
- data/lib/laser-cutter/version.rb +1 -1
- metadata +1 -1
data/bin/laser-cutter
CHANGED
|
@@ -20,7 +20,7 @@ Usage: laser-cutter [options]'
|
|
|
20
20
|
laser-cutter -w 30 -h 20 -d 10 -t 4.3 -n 10 -o box.pdf
|
|
21
21
|
EOF
|
|
22
22
|
|
|
23
|
-
options =
|
|
23
|
+
options = Hashie::Mash.new
|
|
24
24
|
options.verbose = false
|
|
25
25
|
|
|
26
26
|
opt_parser = OptionParser.new do |opts|
|
|
@@ -77,11 +77,11 @@ EOF
|
|
|
77
77
|
end # class OptParse
|
|
78
78
|
|
|
79
79
|
options = Laser::Cutter::OptParse.parse(ARGV)
|
|
80
|
-
config = Laser::Cutter::Configuration.new(options.
|
|
80
|
+
config = Laser::Cutter::Configuration.new(options.to_hash)
|
|
81
81
|
|
|
82
82
|
if options.verbose
|
|
83
83
|
puts "Starting with the following configuration:"
|
|
84
|
-
puts JSON.pretty_generate(config.
|
|
84
|
+
puts JSON.pretty_generate(config.to_hash).green
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
begin
|
data/lib/laser-cutter/version.rb
CHANGED