Add a helpful error message when we need the submission name but it wasn't provided
[htsworkflow.git] / encode_submission / geo_gather.py
index 5d6bf1142f193c3c88a566270ed6579b4f58273c..c67edefc7d45d0e95e7a798dd015a31befbbbac2 100644 (file)
@@ -84,6 +84,8 @@ def main(cmdline=None):
         extractor.create_scripts(results)
 
     if opts.scan_submission:
+        if opts.name is None:
+            parser.error("Please define a submission name")
         mapper.scan_submission_dirs(results)
 
     if opts.make_soft: