diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py
index 49fd779bee9b14bb3770aaa4625c437f07ea85f0..b2c9ae32055edb3dc192df6797d9857d67e3d264 100644
--- a/src/caoscrawler/crawl.py
+++ b/src/caoscrawler/crawl.py
@@ -1385,6 +1385,10 @@ def parse_args():
                                      formatter_class=RawTextHelpFormatter)
     parser.add_argument("cfood_file_name",
                         help="Path name of the cfood yaml file to be used.")
+    parser.add_argument("-r", "--restrict", nargs="*",
+                        help="Restrict the crawling to the subtree at the end of the given path."
+                        "I.e. for each level that is given the crawler only treats the element "
+                        "with the given name.")
     parser.add_argument("--provenance", required=False,
                         help="Path name of the provenance yaml file. "
                         "This file will only be generated if this option is set.")
@@ -1412,10 +1416,6 @@ def parse_args():
     parser.add_argument("-p", "--prefix",
                         help="Remove the given prefix from the paths "
                         "of all file objects.")
-    parser.add_argument("-r", "--restrict",
-                        help="Restrict the crawling to the subtree at the end of the given path."
-                        "I.e. for each level that is given the crawler only treats the element "
-                        "with the given name.")
 
     return parser.parse_args()
 
@@ -1447,7 +1447,7 @@ def main():
                       "insert": SecurityMode.INSERT,
                       "update": SecurityMode.UPDATE}[args.security_mode],
         unique_names=args.unique_names,
-        restricted_path=restricted_path
+        restricted_path=args.restrict
     ))