Fix dl_cleanup.py
[openwrt/staging/yousong.git] / scripts / dl_cleanup.py
index 48f587de5274cf5e314b72b9b1544185a9fd8671..67ccbda914eec08c1aee20f7fed9069f077fd4c4 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