bin/hoc in hoc-0.2 vs bin/hoc in hoc-0.3
- old
+ new
@@ -28,10 +28,11 @@
require 'slop'
require 'hoc/version'
opts = Slop.parse(ARGV, strict: true, help: true) do
banner "Usage (#{HOC::VERSION}): hoc [options]"
- on 'f', 'format', 'Output format (text|xml|json|int)', default: 'int'
+ on 'f', 'format', 'Output format (text|xml|json|int)',
+ default: 'int', argument: :required
end
if opts.help?
puts opts
exit