Skip to content

Commit

Permalink
fix bug in test_scheduler, allow old handler call format
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Apr 28, 2017
1 parent f21fdab commit eab9305
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/lib/CIME/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def filter(self, record):
#non-zero return means we log this message
return 1 if record.levelno < self.max_level else 0

def handle_standard_logging_options(args, parser):
def handle_standard_logging_options(args, parser=None):
"""
Guide to logging in CIME.
Expand Down Expand Up @@ -1241,8 +1241,8 @@ def _check_for_invalid_args(args):
if arg.startswith("--"):
continue
if arg.startswith("-") and len(arg) > 2:
if arg == "-value":
logger.warn("This argument is deprecated, please use -%s"%arg)
if arg == "-value" or arg == "-noecho":
logger.warn("This argument is depricated, please use -%s"%arg)
else:
expect(False, "Invalid argument %s\n Multi-character arguments should begin with \"--\" and single character with \"-\"\n Use --help for a complete list of available options"%arg)

Expand Down

0 comments on commit eab9305

Please sign in to comment.