share/rbbt_commands/tsv/write_excel in rbbt-util-5.35.4 vs share/rbbt_commands/tsv/write_excel in rbbt-util-5.36.0

- old
+ new

@@ -52,11 +52,12 @@ tsvfile, excelfile = ARGV excelfile, tsvfile = tsvfile, nil if excelfile.nil? and tsvfile =~ /\.(xls|xlsx)$/ -raise ParameterException, "No files given" if tsvfile.nil? and excelfile.nil? -raise ParameterException, "No excel file given" if excelfile.nil? +raise ParameterException, "No TSV file given" if tsvfile.nil? + +excelfile = tsvfile.sub(/\.tsv(\.gz)?$/, '.xlsx') if excelfile.nil? require 'rbbt/tsv/excel' TSV.open(tsvfile, options).excel(excelfile, options)