diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2000-04-05 19:28:07 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-04-05 19:28:07 +0000 |
commit | 3acc9f80efa7bf4a65b5efdb3c5d9f5ef25d3c22 (patch) | |
tree | 4ee721cf19be7090fcb1598937ab7df66bab2b16 /Completion | |
parent | 80ac43783a990ecb1e5234e3d7a682508102e42f (diff) | |
download | zsh-3acc9f80efa7bf4a65b5efdb3c5d9f5ef25d3c22.tar.gz zsh-3acc9f80efa7bf4a65b5efdb3c5d9f5ef25d3c22.tar.xz zsh-3acc9f80efa7bf4a65b5efdb3c5d9f5ef25d3c22.zip |
Patches 10513, 10516 (Alexandre), 10519 (Oliver), 10524
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_prcs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Completion/User/_prcs b/Completion/User/_prcs index 30c76e791..5f964fbac 100644 --- a/Completion/User/_prcs +++ b/Completion/User/_prcs @@ -5,7 +5,7 @@ (( $+functions[_prcs_projects] )) || _prcs_projects() { - compadd $@ - ${opt_args[-R]:-${opt_args[--repository]:-${PRCS_REPOSITORY:-$HOME/PRCS}}}/*(/:t) + compadd $@ - ${~opt_args[-R]:-${opt_args[--repository]:-${PRCS_REPOSITORY:-$HOME/PRCS}}}/*(/:t) } # standard options for all subcommands @@ -65,6 +65,7 @@ else compress\:"instruct PRCS to save disk space for project" init\:"create a repository entry" pdelete\:"delete a repository entry" + pinfo\:"list all projects in the repository" prename\:"rename a repository entry" rebuild\:"reconstruct PRCS data files in the repository" uncompress\:"instruct PRCS to save time in processing project"))' @@ -75,11 +76,17 @@ else access|compress|init|pdelete|prename|rebuild) _prcs_arguments ':project name:_prcs_projects' ;; + pinfo) + _prcs_arguments + ;; uncompress) _prcs_arguments \ '-i[expand the entire project immediately]' \ ':project name:_prcs_projects' ;; + *) + _message "unknown prcs administrative subfunction: $words[1]" + ;; esac fi ;; @@ -120,11 +127,6 @@ else '*:file or directory:_files' ;; diff) -# -# FIXME: when there will be a _diff completion function, -# we should complete with diff options after `--' : -# prcs diff [OPTION ...] [PROJECT [FILE-OR-DIR ...]] [-- [DIFF-OPTION ...]] -# _prcs_arguments \ '*--revison=[version of the project]:revision:' \ '*-r[version of the project]:revision:' \ @@ -134,6 +136,7 @@ else '(--new)-N[compare new files against empty files]' \ "(-P)--exclude-project-file[don't diff the project file]" \ "(--exclude-project-file)-P[don't diff the project file]" \ + '--[introduce diff options]:*::diff options:= _diff_options ${PRCS_DIFF_COMMAND:-diff}' \ ':project name:_prcs_projects' \ '*:file or directory:_files' ;; @@ -197,7 +200,7 @@ else ':project name:_prcs_projects' ;; *) - _message "unknown prcs command: $words[2]" + _message "unknown prcs command: $words[1]" ;; esac fi |