Index: trunk/ippScripts/scripts/phase0exp.pl
===================================================================
--- trunk/ippScripts/scripts/phase0exp.pl	(revision 9091)
+++ trunk/ippScripts/scripts/phase0exp.pl	(revision 9097)
@@ -12,8 +12,8 @@
 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
 
-my ($expid, $no_update);
+my ($exptag, $no_update);
 
 GetOptions(
-    'exp_id|e=s'    => \$expid,
+    'exp_tag|e=s'    => \$exptag,
     'no-update'     => \$no_update
 ) or pod2usage( 2 );
@@ -21,7 +21,7 @@
 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
 pod2usage(
-    -msg => "Required options: --exp_id",
+    -msg => "Required options: --exp_tag",
     -exitval => 3,
-) unless defined $expid;
+) unless defined $exptag;
 
 # Define setup
@@ -73,8 +73,8 @@
 my $imfiles;
 {
-    my $command = "$p0tool -rawimfile -exp_id $expid";
+    my $command = "$p0tool -rawimfile -exp_tag $exptag";
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         run(command => $command, verbose => 1);
-    die "Unable to perform p0tool on exposure id $expid: $error_code\n" if not $success;
+    die "Unable to perform p0tool on exposure id $exptag: $error_code\n" if not $success;
     my $metadata = $mdcParser->parse(join "", @$stdout_buf)
             or die "unable to parse metadata config doc";
@@ -117,5 +117,5 @@
 # Output results to the database
 unless ($no_update) {
-    my $command = "$p0tool -updateexp -exp_id $expid"; # Command to execute to update exposure parameters
+    my $command = "$p0tool -updateexp -exp_tag $exptag"; # Command to execute to update exposure parameters
     
     # Add the values of interest
@@ -157,5 +157,5 @@
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         run(command => $command, verbose => 1);
-    die "Unable to run phase0 update for $expid: $error_code\n" if not $success;
+    die "Unable to run phase0 update for $exptag: $error_code\n" if not $success;
 }
 
