Renamed -version switch to -Version to remove the conflict with -verbose.
[mmh] / docs / COMPLETION-BASH
index 4938903..da20671 100644 (file)
@@ -37,90 +37,81 @@ _nmh()
         ali )
             # no sequences or messages
             options=(-alias -list -nolist -normalize -nonormalize -user
-                    -nouser -version -help)
+                    -nouser -Version -help)
             ;;
         burst )
             options=(-inplace -noinplace -quiet -noquiet -verbose
-                    -noverbose -version -help)
+                    -noverbose -Version -help)
             ;;
         comp )
             options=(-form -use -nouse
-                    -editor -noedit -whatnowproc -nowhatnowproc
-                    -version -help )
+                    -editor -noedit -whatnowproc
+                    -Version -help )
            ;;
         flist* )
             options=(-sequence -all -noall -showzero -noshowzero
-                    -recurse -norecurse -fast -nofast -alpha -noalpha -version
+                    -recurse -norecurse -fast -nofast -alpha -noalpha -Version
                     -help)
             ;;
         folder* )
             options=(-all -noall -create -nocreate -fast -nofast -header
                     -noheader -recurse -norecurse -total -nototal -list -nolist
                     -push -pop -pack -nopack -print -verbose -noverbose
-                    -version -help)
+                    -Version -help)
             ;;
         forw )
             options=(-annotate -noannotate -form
-                    -editor -noedit -whatnowproc
-                    -nowhatnowproc -build
-                    -version -help)
+                    -editor -noedit -whatnowproc -build
+                    -Version -help)
             ;;
         inc )
             options=(-audit -noaudit -changecur -nochangecur -form
                     -file -silent -nosilent -truncate -notruncate -width
-                    -version -help)
+                    -Version -help)
             ;;
         mark )
             options=(-sequence -add -delete -list -public -nopublic
-                    -zero -nozero -version -help)
-            ;;
-        next )
-            options=(-showmimeproc -header -noheader -checkmime
-                    -nocheckmime -version -help)
+                    -zero -nozero -Version -help)
             ;;
         packf )
-            options=(-file -version -help)
+            options=(-file -Version -help)
             ;;
         pick )
             options=(-and -or -not -lbrace -rbrace --component -cc
                     -date -from -search -subject -to -after -before -datefield
                     -sequence -public -nopublic -zero -nozero -list -nolist
-                    -version -help)
-            ;;
-        prev )
-            options=(-showproc -showmimeproc -header -noheader -checkmime
-                    -nocheckmime -version -help)
+                    -Version -help)
             ;;
         refile )
-            options=(-link -nolink -preserve -nopreserve -unlink
-                    -nounlink -src -file -rmmproc -normmproc -version -help)
+            options=(-link -nolink -src -file -Version -help)
             ;;
         repl )
             options=(-annotate -noannotate -group -nogroup -cc
                     -nocc -query -noquery -form -filter -nofilter
                     -mime -nomime -editor -noedit -whatnowproc
-                    -nowhatnowproc -build -file -version -help)
+                    -build -file -Version -help)
             ;;
         rmf )
-            options=(-interactive -nointeractive -version -help)
+            options=(-interactive -nointeractive -Version -help)
             ;;
         rmm )
-            options=(-link -nolink -version -help)
+            options=(-link -nolink -Version -help)
             ;;
         scan )
             options=(-form -header -noheader
-                    -width -file -version -help )
+                    -width -file -Version -help )
             ;;
         show )
-            options=(-showproc -showmimeproc -header -noheader
-                    -checkmime -nocheckmime -version -help)
+        next )
+        prev )
+            options=(-file -part -type -form -Version -help)
             ;;
         sortm )
             options=(-datefield -textfield -notextfield -limit -nolimit
-                    -verbose -noverbose -version -help)
+                    -verbose -noverbose -Version -help)
             ;;
         * )
-            options=(-help -version -seq)
+            options=(-help -Version -seq)
             ;;
         esac
         ;;
@@ -158,4 +149,4 @@ _nmh()
     COMPREPLY=( $( compgen -W "${options[*]}" -- $current ) )
     return 0
 }
-[ "$have" ] && complete -F _nmh ali anno burst comp dist flist flists folder folders forw inc mark mhbuild mhl mhlist mhmail mhparam mhpath mhshow mhstore msgchk next packf pick prev prompter rcvdist rcvpack rcvstore refile repl rmf rmm scan send sendfiles show slocal sortm whatnow
+[ "$have" ] && complete -F _nmh ali anno burst comp dist flist flists folder folders forw inc mark mhbuild mhl mhlist mhmail mhparam mhpath mhstore msgchk next packf pick prev prompter rcvdist rcvpack rcvstore refile repl rmf rmm scan send sendfiles show slocal sortm whatnow