Changeset 27587

Show
Ignore:
Timestamp:
10.06.2013 11:29:03 (6 years ago)
Author:
jmt12
Message:

Allow debug mode to be enabled from the command line

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/bin/script/parse_task_info_from_hadoop_log.pl

    r27586 r27587  
    4343if (!defined $ARGV[0]) 
    4444{ 
    45   die("usage: parse_task_info_from_hadoop_log.pl <results dir>\n"); 
     45  die("usage: parse_task_info_from_hadoop_log.pl <results dir> [-debug]\n"); 
    4646} 
    4747my $results_dir = $ARGV[0]; 
     
    5151} 
    5252print " Results directory: " . $results_dir . "\n"; 
     53 
     54if (defined $ARGV[1] && $ARGV[1] eq '-debug') 
     55{ 
     56  $debug = 1; 
     57} 
    5358 
    5459# 1. Determine job ID