zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: improve wget --restrict-file-names completion
@ 2005-06-24  4:02 Doug Kearns
  0 siblings, 0 replies; only message in thread
From: Doug Kearns @ 2005-06-24  4:02 UTC (permalink / raw)
  To: zsh-workers

--restrict-file-names actually allows:
'nocontrol'
'unix,nocontrol'
'windows,nocontrol'

Regards,
Doug

Index: Completion/Unix/Command/_wget
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_wget,v
retrieving revision 1.9
diff -u -r1.9 _wget
--- Completion/Unix/Command/_wget	26 Feb 2004 12:57:21 -0000	1.9
+++ Completion/Unix/Command/_wget	24 Jun 2005 03:47:21 -0000
@@ -37,7 +37,7 @@
   '--bind-address=:address to bind to (hostname or IP):_hosts' \
   '--limit-rate=[specify limit to download rate]:download rate limit' \
   '--dns-cache=[disable caching DNS lookups]:dns cache:(on off)' \
-  '--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:(unix windows)' \
+  '--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:->restrict' \
   '(--force-directories -x)'{--force-directories,-x}'[force creation of directories]' \
   '(--directory-prefix -P)'{--directory-prefix=,-P+}'[specify prefix to save files to]:prefix:_files -/' \
   '--cut-dirs=:number:' \
@@ -114,4 +114,10 @@
       'r[don'\''t remove listing]' \
       'p[no parent]'
   ;;
+  restrict)
+    _values -s , 'filename char restriction' \
+      '(windows)unix' \
+      '(unix)windows' \
+      '(unix windows)nocontrol'
+  ;;
 esac


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

only message in thread, other threads:[~2005-06-24  4:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24  4:02 PATCH: improve wget --restrict-file-names completion Doug Kearns

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