diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py
index d300c52d9624d7de6a4b597cc7f18b90f2ccffaf..7ad81e7bc7b00c5e6fc412051c7497154ce097ae 100644
--- a/src/caoscrawler/crawl.py
+++ b/src/caoscrawler/crawl.py
@@ -1457,7 +1457,7 @@ def main():
 
     if args.add_cwd_to_path:
         sys.path.append(os.path.abspath("."))
-    restrict_path = None
+    restricted_path = None
     if args.restrict_path:
         restricted_path = split_restricted_path(args.restrict_path)
     if args.restrict: