zsh-workers
 help / color / mirror / code / Atom feed
From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: [PATCH] _php: remove _arguments's -A, which interferes with _normal
Date: Sun, 14 Feb 2016 18:28:48 -0500	[thread overview]
Message-ID: <1455492528-10888-1-git-send-email-llua@gmx.com> (raw)

reported on IRC by a user with a completer for a php script but also
desires ''php script -<tab>'' to use his completer.

''
php ls -<tab> # => Completing no more arguments
''

post patch, you should see ls' options.
---
 Completion/Unix/Command/_php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
index 4edcd1e..0e84003 100644
--- a/Completion/Unix/Command/_php
+++ b/Completion/Unix/Command/_php
@@ -43,7 +43,7 @@ args+=(
   '(-)*::script argument: _normal'
 )
 
-_arguments -C -s -S -A "-*" "$args[@]" && return 0
+_arguments -C -s -S "$args[@]" && return 0
 
 case $state in
   directive)
-- 
2.6.2


                 reply	other threads:[~2016-02-14 23:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1455492528-10888-1-git-send-email-llua@gmx.com \
    --to=llua@gmx.com \
    --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).