exe/junoser in junoser-0.1.2 vs exe/junoser in junoser-0.1.3
- old
+ new
@@ -3,11 +3,11 @@
require 'optparse'
require 'pathname'
$: << File.expand_path('../../lib', Pathname.new(__FILE__).realpath)
-require 'junoser/cli'
+require 'junoser'
command = nil
opts = OptionParser.new do |opts|
opts.banner = 'junoser: an juniper configuration parser'
@@ -32,20 +32,21 @@
exit
end
opts.on_tail '-v', '--version', 'Show version' do
puts Junoser::VERSION
+ exit
end
end
opts.parse!
case command
when :check
abort unless Junoser::Cli.commit_check($<)
when :display_set
- Junoser::Cli.display_set $<
+ puts Junoser::Cli.display_set($<)
when :struct
- Junoser::Cli.struct $<
+ puts Junoser::Cli.struct($<)
else
puts opts
abort
end