Commits

Steve Losh committed e0a7dd7

Add better error message for invalid types

  • Participants
  • Parent commits de27355

Comments (0)

Files changed (1)

 
     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,