diff extra/soundsoftware/create-repo-authormaps.rb @ 1545:f81fcbde7eaf feature_1136

Merge
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 12 Jan 2016 15:14:36 +0000
parents 05d639e5d59b
children fd4cc11ae096
line wrap: on
line diff
--- a/extra/soundsoftware/create-repo-authormaps.rb	Tue Jan 12 13:39:30 2016 +0000
+++ b/extra/soundsoftware/create-repo-authormaps.rb	Tue Jan 12 15:14:36 2016 +0000
@@ -18,7 +18,7 @@
 # This script does that, if given the two directory names as arguments
 # to the -s and -o options. In the above example:
 #
-# script/rails runner create-repo-authormaps.rb -s /var/hg -o /var/repo-export/authormap
+# ./script/rails runner -e production extra/soundsoftware/create-repo-authormaps.rb -s /var/hg -o /var/repo-export/authormap
 #
 # Note that this script will overwrite any existing authormap
 # files. (That's why the output files are given an authormap_ prefix,
@@ -28,9 +28,9 @@
 require 'getoptlong'
 
 opts = GetoptLong.new(
-                      ['--scm-dir',      '-s', GetoptLong::REQUIRED_ARGUMENT],
-                      ['--out-dir',      '-o', GetoptLong::REQUIRED_ARGUMENT],
-                      ['--environment',  '-e', GetoptLong::REQUIRED_ARGUMENT]
+                      ['--scm-dir', '-s', GetoptLong::REQUIRED_ARGUMENT],
+                      ['--out-dir', '-o', GetoptLong::REQUIRED_ARGUMENT],
+                      ['--environment', '-e', GetoptLong::OPTIONAL_ARGUMENT]
 )
 
 $repos_base   = ''