about summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-05 16:19:14 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-05 16:19:14 +0000
commit0449f416c030dbc5c0ffca625d7abdec62aa22f5 (patch)
tree5a38c117f1e9c0e77ea0a903519499ebe3f121c6 /Completion/Debian
parent40159f4fdde7fc37da5aaf979de5d20e19a41479 (diff)
downloadzsh-0449f416c030dbc5c0ffca625d7abdec62aa22f5.tar.gz
zsh-0449f416c030dbc5c0ffca625d7abdec62aa22f5.tar.xz
zsh-0449f416c030dbc5c0ffca625d7abdec62aa22f5.zip
manual/8575
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/_bug44
1 files changed, 37 insertions, 7 deletions
diff --git a/Completion/Debian/_bug b/Completion/Debian/_bug
index 376fa0135..f80a34318 100644
--- a/Completion/Debian/_bug
+++ b/Completion/Debian/_bug
@@ -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 grave 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