Fix dl_cleanup.py
[15.05/openwrt.git] / scripts / dl_cleanup.py
index 48f587d..67ccbda 100755 (executable)
@@ -147,7 +147,8 @@ def main(argv):
                        "hdBw:",
                        [ "help", "dry-run", "show-blacklist", "whitelist=", ])
                if len(args) != 1:
-                       raise getopt.GetoptError()
+                       usage()
+                       return 1
        except getopt.GetoptError:
                usage()
                return 1