zsh-workers
 help / color / mirror / code / Atom feed
From: Doug Kearns <dougkearns@gmail.com>
To: zsh-workers@sunsite.dk
Subject: PATCH: improve wget --restrict-file-names completion
Date: Fri, 24 Jun 2005 14:02:09 +1000	[thread overview]
Message-ID: <20050624040209.GG4591@localhost.localdomain> (raw)

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


                 reply	other threads:[~2005-06-24  4:09 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=20050624040209.GG4591@localhost.localdomain \
    --to=dougkearns@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /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).