* PATCH: completion for bug
@ 1999-11-04 16:11 Clint Adams
1999-11-04 18:53 ` Falk Hueffner
0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 1999-11-04 16:11 UTC (permalink / raw)
To: zsh-workers
*** Completion/Debian/_bug Wed Dec 31 19:00:00 1969
--- Completion/Debian.new/_bug Thu Nov 4 11:09:48 1999
***************
*** 0 ****
--- 1,15 ----
+ #compdef bug
+
+ _arguments '-c[exclude configs from report]' \
+ '-d[debug - send mail to postmaster@localhost]' \
+ '-f[argument is a file, not a package]' \
+ '-H[special header]:custom header:' \
+ '-m[maintainer-only]' \
+ '-p[print to stdout instead of mail]' \
+ '-q[quiet - no e-mail forwarding]' \
+ '-s[set subject]:subject:' \
+ '-S[set severity]:severity:(wishlist normal important grave critical)' \
+ '-x[do not cc submitter]' \
+ '-z[send configs verbatim]' \
+ '-h[help]' \
+ '*:package:_deb_packages installed'
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: completion for bug
1999-11-04 16:11 PATCH: completion for bug Clint Adams
@ 1999-11-04 18:53 ` Falk Hueffner
1999-11-05 16:06 ` Clint Adams
0 siblings, 1 reply; 3+ messages in thread
From: Falk Hueffner @ 1999-11-04 18:53 UTC (permalink / raw)
To: zsh-workers
Clint Adams <clint@dman.com> writes:
> *** Completion/Debian/_bug Wed Dec 31 19:00:00 1969
> --- Completion/Debian.new/_bug Thu Nov 4 11:09:48 1999
There's a tool called 'reportbug' with similar functionality that
accepts all these options (and some more), so please add it to the
#comdef line.
Falk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: completion for bug
1999-11-04 18:53 ` Falk Hueffner
@ 1999-11-05 16:06 ` Clint Adams
0 siblings, 0 replies; 3+ messages in thread
From: Clint Adams @ 1999-11-05 16:06 UTC (permalink / raw)
To: Falk Hueffner; +Cc: zsh-workers
> There's a tool called 'reportbug' with similar functionality that
> accepts all these options (and some more), so please add it to the
> #comdef line.
Here you go:
--- Completion/Debian/_bug Fri Nov 5 10:23:39 1999
+++ Completion/Debian.new/_bug Fri Nov 5 11:00:28 1999
@@ -1,15 +1,45 @@
-#compdef bug
+#compdef bug reportbug
-_arguments '-c[exclude configs from report]' \
- '-d[debug - send mail to postmaster@localhost]' \
- '-f[argument is a file, not a package]' \
- '-H[special header]:custom header:' \
+_bug_commonargs=('-d[debug: send mail to postmaster@localhost]' \
'-m[maintainer-only]' \
'-p[print to stdout instead of mail]' \
'-q[quiet - no e-mail forwarding]' \
+ '-h[help]' \
+ '-v[version]' \
+ '*:package:_deb_packages installed')
+
+case "$words[1]" in
+bug)
+_arguments '-c[exclude configs from report]' \
+ '-f[argument is a file, not a package]' \
+ '-H[special header]:custom header:' \
'-s[set subject]:subject:' \
'-S[set severity]:severity:(wishlist normal important grave critical
)' \
'-x[do not cc submitter]' \
'-z[send configs verbatim]' \
- '-h[help]' \
- '*:package:_deb_packages installed'
+ "$_bug_commonargs[@]"
+;;
+
+reportbug)
+_arguments '(--no-config-files)-c[exclude configs from report]' \
+ '(--file=)-f[argument is a file, not a package]:filename:' \
+ '(--header=)-H[special header]:custom header:' \
+ '(--subject=)-s[set subject]:subject:' \
+ '(--severity=)-S[set severity]:severity:(wishlist normal important g
rave critical)' \
+ '(--no-cc)-x[do not cc submitter]' \
+ '(--no-compress)-z[send configs verbatim]' \
+ '(--af)-a[use af instead of editor]' \
+ '(--no-bts-query)-b[do not check bts]' \
+ '(--bts=)-B[use alternate BTS]:system:(debian gnome kde tdyc)' \
+ '-g[sign report with GnuPG]' \
+ '(--include=)-i[include text]:' \
+ '(--no-ldap)-l[disable LDAP support]' \
+ '(--mutt)-M[use mutt instead of editor]' \
+ '--mua=[use specified mua instead of editor]' \
+ '(--nmh --mh)-n[use comp instead of editor]' \
+ '(--output=)-o[output to file instead of mail]' \
+ '(--pgp)-P[sign report with PGP]' \
+ '--ldap[enable LDAP support]' \
+ "$_bug_commonargs[@]"
+;;
+esac
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-11-05 16:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-04 16:11 PATCH: completion for bug Clint Adams
1999-11-04 18:53 ` Falk Hueffner
1999-11-05 16:06 ` Clint Adams
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).