[Rivet-svn] r2756 - trunk/data

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Nov 17 14:39:07 GMT 2010


Author: buckley
Date: Wed Nov 17 14:39:06 2010
New Revision: 2756

Log:
Fixing/improving compare-histos completion

Modified:
   trunk/data/rivet-completion

Modified: trunk/data/rivet-completion
==============================================================================
--- trunk/data/rivet-completion	Tue Nov 16 20:04:43 2010	(r2755)
+++ trunk/data/rivet-completion	Wed Nov 17 14:39:06 2010	(r2756)
@@ -98,7 +98,7 @@
     opts="$opts --histogram-list -l"
     opts="$opts --hier-out --linear --logarithmic --mc-errs"
     opts="$opts --no-ratio --rel-ratio --abs-ratio"
-    opts="$opts --all --no-ref-only --show-ref-only --refid"
+    opts="$opts --all --show-mc-only --show-single --refid"
     opts="$opts --plot-info-dir"
     opts="$opts --quiet -q --verbose -v"
     if [[ ${cur} == -* ]] ; then
@@ -108,6 +108,11 @@
         fi
     fi
 
+    if [[ ${prev} == "--show-single" ]]; then
+        COMPREPLY=( $(compgen -W "no mc ref all" -- ${cur}) )
+        return 0
+    fi
+
     files=$(ls *.aida)
     COMPREPLY=( $(compgen -W "$opts $files" -- ${cur}) )
     if test -n "$COMPREPLY"; then


More information about the Rivet-svn mailing list