Permalink
Browse files

Update opts doc for bin

  • Loading branch information...
1 parent dc75c73 commit 16b646961cd8b25a98e1ec41a060f9739102508b @toretore committed Apr 12, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 bin/barby
View
@@ -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 = {
@@ -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 }

0 comments on commit 16b6469

Please sign in to comment.