Add comment to reporting

Change-Id: Ia896c7ab8b6fdb73572f0653f58a9debba643603
diff --git a/bin/corpuslist_to_index b/bin/corpuslist_to_index
index 9f7edbd..2d05ca2 100644
--- a/bin/corpuslist_to_index
+++ b/bin/corpuslist_to_index
@@ -17,7 +17,6 @@
 my @cmds = ('untar', 'count_json', 'to_index');
 
 my $who = ''; # Worker 05 (10.0.10.57):
-my $comment = '';
 
 GetOptions(
   'batch|b=i'  => \(my $package_size = 15),
@@ -28,6 +27,7 @@
   'index-conf|ic=s' => \(my $index_conf = 'kustvakt.conf'),
   'slack=s' => \(my $slack = ''),
   'cmd|c=s' => \@cmds,
+  'comment=s' => \(my $comment),
   'help|h' => sub {
     pod2usage(
       -verbose  => 99,
@@ -145,7 +145,7 @@
     print 'slack.js -c ' . $slack . ' ';
     print '"Done: ' . $who . "indexation $from-$to";
     if ($comment) {
-      print '(' . $comment . ')';
+      print ' (' . $comment . ')';
     };
     print '"  ) & )'."\n\n";
   } else {
@@ -211,6 +211,10 @@
 
 Give a slack channel for reporting.
 
+=item B<--comment>
+
+Add comment that is added to all reportings.
+
 =back
 
 =cut