zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Allow zfs create, snapshot and clone's -o option to appear multiple times.
@ 2014-04-05 20:46 llua
  0 siblings, 0 replies; only message in thread
From: llua @ 2014-04-05 20:46 UTC (permalink / raw)
  To: zsh-workers

---
 Completion/Unix/Command/_zfs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Completion/Unix/Command/_zfs b/Completion/Unix/Command/_zfs
index a9707ce..cd5ad3e 100644
--- a/Completion/Unix/Command/_zfs
+++ b/Completion/Unix/Command/_zfs
@@ -221,7 +221,7 @@ _zfs() {
 	("create")
 		_arguments -A "-*" \
 			'-p[Create parent datasets]' \
-			'-o[Set initial properties]:property:_values -s , "property" $create_properties' \
+			'*-o[Set initial properties]:property:_values -s , "property" $create_properties' \
 			- set1 \
 			':filesystem:_zfs_dataset -t fs -e "parent dataset"' \
 			- set2 \
@@ -246,7 +246,7 @@ _zfs() {
 	("snapshot")
 		_arguments -A "-*" \
 			'-r[Recursively snapshot all descendant datasets]' \
-			'-o[Set property]:property:_values -s , "property" $create_properties' \
+			'*-o[Set property]:property:_values -s , "property" $create_properties' \
 			':filesystem/volume:_zfs_dataset -t fs -t vol -S@'
 		;;
 
@@ -263,7 +263,7 @@ _zfs() {
 		_arguments -A "-*" \
 			'-p[Create parent datasets]' \
 			'-K[Create encryption key]' \
-			'-o[Set property]:property:_values -s , "property" $create_properties' \
+			'*-o[Set property]:property:_values -s , "property" $create_properties' \
 			':snapshot:_zfs_dataset -t snap' \
 			':filesystem/volume:_zfs_dataset -t fs -e "parent dataset"'
 		;;
-- 
1.9.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-05 20:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-05 20:46 [PATCH] Allow zfs create, snapshot and clone's -o option to appear multiple times llua

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).