From be77de27ae5af645ff75447371cf9b0383273d00 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Tue, 10 May 2011 10:35:48 +0000 Subject: [PATCH] fixed type cast bug git-svn-id: http://biopieces.googlecode.com/svn/trunk@1396 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/analyze_assembly | 8 ++++---- bp_bin/find_genes | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bp_bin/analyze_assembly b/bp_bin/analyze_assembly index b30517a..a946d2c 100755 --- a/bp_bin/analyze_assembly +++ b/bp_bin/analyze_assembly @@ -35,10 +35,10 @@ require 'prodigal' require 'pp' casts = [] -casts << {:long=>'gene_cov', :short=>'g', :type=>'flag', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} -casts << {:long=>'full', :short=>'p', :type=>'procedure', :mandatory=>true, :default=>'single', :allowed=>'single,meta', :disallowed=>nil} -casts << {:long=>'no_stream', :short=>'x', :type=>'flag', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} -casts << {:long=>'data_out', :short=>'o', :type=>'file', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} +casts << {:long=>'gene_cov', :short=>'g', :type=>'flag', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} +casts << {:long=>'procedure', :short=>'p', :type=>'string', :mandatory=>true, :default=>'single', :allowed=>'single,meta', :disallowed=>nil} +casts << {:long=>'no_stream', :short=>'x', :type=>'flag', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} +casts << {:long=>'data_out', :short=>'o', :type=>'file', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} bp = Biopieces.new diff --git a/bp_bin/find_genes b/bp_bin/find_genes index f0d64c8..367b976 100755 --- a/bp_bin/find_genes +++ b/bp_bin/find_genes @@ -34,8 +34,8 @@ require 'fasta' require 'prodigal' casts = [] -casts << {:long=>'full', :short=>'f', :type=>'flag', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} -casts << {:long=>'full', :short=>'p', :type=>'procedure', :mandatory=>true, :default=>'single', :allowed=>'single,meta', :disallowed=>nil} +casts << {:long=>'full', :short=>'f', :type=>'flag', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} +casts << {:long=>'procedure', :short=>'p', :type=>'string', :mandatory=>true, :default=>'single', :allowed=>'single,meta', :disallowed=>nil} bp = Biopieces.new -- 2.39.2