Skip to content

Commit

Permalink
Update opts doc for bin
Browse files Browse the repository at this point in the history
  • Loading branch information
toretore committed Apr 12, 2011
1 parent dc75c73 commit 16b6469
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/barby
@@ -1,8 +1,9 @@
#!/usr/bin/env ruby
#encoding: UTF-8
require 'optparse'
require 'rubygems'

$: << File.join(File.dirname(__FILE__), '..', 'lib')
#$: << File.join(File.dirname(__FILE__), '..', 'lib')
require 'barby'

options = {
Expand All @@ -20,8 +21,8 @@ ARGV.options do |o|
o.separator ''

o.on('-b', '--barcode=ClassName', String, 'Barcode type (Code128B)'){|v| options[:barcode] = v }
o.on('-o', '--outputter=ClassName', String, 'Outputter (Png)'){|v| options[:outputter] = v }
o.on('-m', '--method=method_name', String, 'Outputter method (to_png)'){|v| options[:outputter_method] = v }
o.on('-o', '--outputter=ClassName', String, 'Outputter (Ascii)'){|v| options[:outputter] = v }
o.on('-m', '--method=method_name', String, 'Outputter method (to_ascii)'){|v| options[:outputter_method] = v }

o.on_tail("-h", "--help", "Show this help message.") { puts o; exit }

Expand Down

0 comments on commit 16b6469

Please sign in to comment.