Index: trunk/ippScripts/scripts/stack_skycell.pl
===================================================================
--- trunk/ippScripts/scripts/stack_skycell.pl	(revision 19545)
+++ trunk/ippScripts/scripts/stack_skycell.pl	(revision 19561)
@@ -28,9 +28,10 @@
 use Pod::Usage qw( pod2usage );
 
-my ($stack_id, $dbname, $outroot, $debug, $threads, $verbose, $no_update, $no_op, $redirect, $save_temps);
+my ($stack_id, $dbname, $outroot, $debug, $run_state, $threads, $verbose, $no_update, $no_op, $redirect, $save_temps);
 GetOptions(
     'stack_id|d=s'      => \$stack_id, # Stack identifier
     'dbname|d=s'        => \$dbname, # Database name
     'outroot=s'         => \$outroot, # Output root name
+    'run-state=s'       => \$run_state,
     'debug'             => \$debug,   # Print to stdout
     'threads=s'       	=> \$threads,   # Number of threads to use for ppStack
@@ -44,8 +45,9 @@
 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
 pod2usage(
-    -msg => "Required options: --stack_id --outroot",
+    -msg => "Required options: --stack_id --outroot --run-state",
     -exitval => 3,
           ) unless defined $stack_id
-    and defined $outroot;
+    and defined $outroot
+    and defined $run_state;
 
 # XXX camera is not known here; cannot use filerules...
