From: Diane Trout Date: Wed, 12 Sep 2012 18:31:19 +0000 (-0700) Subject: Add a helpful error message when we need the submission name but it wasn't provided X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=a08515b6b945287d2f5778c359e321b9226ceb87 Add a helpful error message when we need the submission name but it wasn't provided --- 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: