From: "Ole Jørgen Brønner" <olejorgenb@yahoo.no>
To: zsh-workers@zsh.org
Subject: PATCH: _update_alternatives: add missing options in completion
Date: Sun, 18 Sep 2011 02:18:30 +0200 [thread overview]
Message-ID: <op.v1y9s4owvocxtk@tabole> (raw)
(Against 1c2ff6852911c47b1386d72e781b465f140e77eb)
Even though the version in Debian stable doesn't list all these in the --help message they are supported. (see man page)
Hopefully I didn't make any mistakes. First time I've messed with completion code.
---
diff --git a/Completion/Debian/Command/_update-alternatives b/Completion/Debian/Command/_update-al
index dd1d4fc..47cda1a 100644
--- a/Completion/Debian/Command/_update-alternatives
+++ b/Completion/Debian/Command/_update-alternatives
@@ -16,11 +16,21 @@ _arguments -C \
'--version' \
'--altdir:altdir:_files -/' \
'--admindir:admindir:_files -/' \
+ '--log:log file:_files -/' \
+ '--force' \
+ '--skip-auto' \
'--install:*::alt:= ->install' \
'--remove:*::alt:= ->remove' \
+ '--remove-all:name:_files -W $alterdir' \
'--auto:name:_files -W $alterdir' \
'--display:name:_files -W $alterdir' \
- '--config:name:_files -W $alterdir' && return
+ '--query:name:_files -W $alterdir' \
+ '--list:name:_files -W $alterdir' \
+ '--get-selections' \
+ '--set-selections' \
+ '--config:name:_files -W $alterdir' \
+ '--set:name:_files -W $alterdir:path:_files -/' \
+ '--all' && return
while true; do
case "$state" in
--
Ole Jørgen Brønner
next reply other threads:[~2011-09-18 0:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-18 0:18 Ole Jørgen Brønner [this message]
2011-12-14 1:13 ` Mikael Magnusson
2011-12-14 4:55 ` Bart Schaefer
2011-12-14 12:47 ` Mikael Magnusson
2011-12-15 10:00 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.v1y9s4owvocxtk@tabole \
--to=olejorgenb@yahoo.no \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).