From: martinahansen Date: Thu, 12 May 2011 15:43:47 +0000 (+0000) Subject: added offset switch to add_ident X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3fa70a0080e7eb871f0d8bca953cf4c8ea62b2a1;p=biopieces.git added offset switch to add_ident git-svn-id: http://biopieces.googlecode.com/svn/trunk@1400 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/add_ident b/bp_bin/add_ident index 57a644a..b15a86d 100755 --- a/bp_bin/add_ident +++ b/bp_bin/add_ident @@ -40,6 +40,7 @@ $options = Maasha::Biopieces::parse_options( [ { long => 'key', short => 'k', type => 'string', mandatory => 'no', default => 'ID', allowed => undef, disallowed => undef }, { long => 'prefix', short => 'p', type => 'string', mandatory => 'no', default => 'ID', allowed => undef, disallowed => undef }, + { long => 'offset', short => 'o', type => 'uint', mandatory => 'no', default => '0', allowed => undef, disallowed => undef }, ] ); @@ -49,7 +50,7 @@ $out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } ); $key = $options->{ "key" }; $prefix = $options->{ "prefix" }; -$i = 0; +$i = $options->{ "offset" }; while ( $record = Maasha::Biopieces::get_record( $in ) ) {