[Swift-commit] r7505 - trunk/bin
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Thu Jan 23 22:16:01 CST 2014
Author: davidk
Date: 2014-01-23 22:16:01 -0600 (Thu, 23 Jan 2014)
New Revision: 7505
Modified:
trunk/bin/swiftrun
Log:
Move -version check
Modified: trunk/bin/swiftrun
===================================================================
--- trunk/bin/swiftrun 2014-01-24 04:15:04 UTC (rev 7504)
+++ trunk/bin/swiftrun 2014-01-24 04:16:01 UTC (rev 7505)
@@ -376,6 +376,15 @@
'version' => \$option_version,
);
+# If -version or -help is specified, pass and exit
+if ( $option_help ) {
+ print "-help\n";
+ exit;
+} elsif ( $option_version ) {
+ print "-version\n";
+ exit;
+}
+
# Create/increment run directory
my $run_number = 0;
my @run_directories = <run[0-9][0-9][0-9]>;
@@ -453,15 +462,6 @@
exit;
}
-# If -version or -help is specified, pass and exit
-if ( $option_help ) {
- print "-help\n";
- exit;
-} elsif ( $option_version ) {
- print "-version\n";
- exit;
-}
-
@new_swift_args = ("-Dscript.dir=$run_directory/scripts");
push(@new_swift_args, "-Drestart.log.name=$run_directory/restart.log");
push(@new_swift_args, "-swiftoutlog=$run_directory/swift.out");
More information about the Swift-commit
mailing list