f7ec69fb5eb5 v0.3.2

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 02 Mar 2014 12:42:11 -0500
parents e0a7dd7d919d (diff) c397a6b5b2d1 (current diff)
children a9e32bdb260b
branches/tags v0.3.2
files ffind

Changes

--- a/ffind	Mon Dec 23 01:02:52 2013 +0200
+++ b/ffind	Sun Mar 02 12:42:11 2014 -0500
@@ -646,6 +646,19 @@
 
     result = set()
     for c in types:
+        if c not in 'aexcyfdrs':
+            die("invalid type specification\n\n"
+                "valid types:\n\n"
+                "  a (all)\n"
+                "  f (files)\n"
+                "  d (dirs)\n"
+                "  r (real)\n"
+                "  s (symlinked)\n"
+                "  e (real files)\n"
+                "  c (real dirs)\n"
+                "  x (symlinked files)\n"
+                "  y (symlinked dirs)")
+
         result = result | {
             'a': TYPES_ALL,