bin/oddb2xml in oddb2xml-1.5.2 vs bin/oddb2xml in oddb2xml-1.5.3
- old
+ new
@@ -15,13 +15,14 @@
oddb2xml [option]
-a T, --append=T Additional target. T, only 'nonpharma' is available.
-c F, --compress=F Compress format F. {tar.gz|zip}
-f F, --format=F File format F, default is xml. {xml|dat}
If F is given, -o option is ignored.
- -o O, --option=O Optional output. O, only 'fi' is available.
-i I, --include=I Include target option for 'dat' format. only 'ean14' is available.
'xml' format includes always ean14 records.
+ -o O, --option=O Optional output. O, only 'fi' is available.
+ -p P, --price=P Price source (transfer.dat). P, only 'zurrose' is available.
-t S, --tag-suffix=S XML tag suffix S. Default is none. [A-z0-9]
If S is given, it is also used as prefix of filename.
-x N, --context=N context N {product|address}. product is default.
-h, --help Show this help message.
EOS
@@ -44,9 +45,10 @@
parser.on('-f v', '--format v', /^xml|dat$/) {|v| opts[:format] = v.intern }
parser.on('-o v', '--option v', /^fi$/) {|v| opts[:fi] = true }
parser.on('-i v', '--include v', /^ean14$/) {|v| opts[:ean14] = true }
parser.on('-t v', '--tag-suffix v', /^[A-z0-9]*$/i) {|v| opts[:tag_suffix] = v.upcase }
parser.on('-x v', '--context v', /^addr(ess)*$/i){|v| opts[:address] = true }
+parser.on('-p v', '--prices v', /^zurrose$/) {|v| opts[:price] = v.intern }
#parser.on('--debug') {|v| opts[:debug] = true }
parser.on_tail('-h', '--help') { puts help; exit }
args = ARGV.dup
begin