From a08515b6b945287d2f5778c359e321b9226ceb87 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Wed, 12 Sep 2012 11:31:19 -0700 Subject: [PATCH] Add a helpful error message when we need the submission name but it wasn't provided --- encode_submission/geo_gather.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/encode_submission/geo_gather.py b/encode_submission/geo_gather.py index 5d6bf11..c67edef 100644 --- a/encode_submission/geo_gather.py +++ b/encode_submission/geo_gather.py @@ -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: -- 2.30.2