Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
completion: option stacking and arguments!
- X-seq: zsh-users 20772
- From: Vincent Bernat <bernat@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: completion: option stacking and arguments!
- Date: Fri, 16 Oct 2015 09:53:19 +0200
- Dkim-signature: v=1; a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :date:message-id:mime-version:content-type; s=postfix; bh=eFI2i5 iNuDHnN7OSv8d/uvrbs20=; b=ZDi/HHvEIEgp5JhwRh4Y4NwEWOMWlhQ0dOc0Uo jTrIZWDX4KpAmGrWirRSaz+dbyXOXGj6zxsCkCL3/8XRN31CftdF4vq6gXy3yZwO uCYV0JhljU8nwZFuIRSAFfuwo/QEj/IN1vRkIKN/ghnsXF9Cb4nWz6QIWf0LTxF3 sPho4=
- Domainkey-signature: a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=postfix; b= kD3Mcq6FJoCwswWsy8RPzuo22IFvRs4mwul7eYrGyOIRpL4BfiDrUxGX4ykc0jyX g8teazBjLE6I3DJ0rWKnWdtCALK1ZZvEFt8djSlzsbMY/YfQ2jaanfnzrvEDOzZ1 pyJFmfQJbfcq7Xg2UpYdsVrxJXu5cFHfdeFUTLKFo5c=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hey!
When using completion with "_arguments '-u=[Run as specified
user]:user:_users'", completing users after "-u" requires a space or an
equal sign. However, when enabling short option stacking with "-s", this
is not the case anymore.
How to still require a space/equal before a mandatory argument when
using option stacking?
Thanks!
--
Write clearly - don't sacrifice clarity for "efficiency".
- The Elements of Programming Style (Kernighan & Plauger)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author