Add a helpful error message when we need the submission name but it wasn't provided
authorDiane Trout <diane@caltech.edu>
Wed, 12 Sep 2012 18:31:19 +0000 (11:31 -0700)
committerDiane Trout <diane@caltech.edu>
Wed, 12 Sep 2012 18:31:19 +0000 (11:31 -0700)
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: