Skip to content

Commit

Permalink
Fixed Issues as per @jgfouca
Browse files Browse the repository at this point in the history
Fixed some indentation inconsistencies, removed the tuple from usage in
parser, fixed logical for skip_pnl and continue_run, and finally fixed
some consistency in strings.

Test suite: scripts_regression_tests.py
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes #1276, E3SM-Project/E3SM#1466

User interface changes?:
Added --skip-preview-namelist to case.build and
template.case.run

Code review: @jgfouca, @rljacob
  • Loading branch information
Erich L Foster committed May 9, 2017
1 parent dc89a25 commit 5cee596
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions config/cesm/machines/template.case.run
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,19 @@ import argparse, doctest
def parse_command_line(args, description):
###############################################################################
parser = argparse.ArgumentParser(
usage="""\n%s [--verbose]
usage="""\n{0} [--verbose]
OR
%s --help
{0} --help
OR
%s --test
{0} --test
\033[1mEXAMPLES:\033[0m
\033[1;32m# case.run SMS\033[0m
> %s
""" % ((os.path.basename(args[0]), ) * 4),

description=description,

formatter_class=argparse.ArgumentDefaultsHelpFormatter
)

parser = argparse.ArgumentParser()
> {0}
""".format(os.path.basename(args[0])),
description=description,
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)

CIME.utils.setup_standard_logging_options(parser)

Expand All @@ -61,7 +57,7 @@ formatter_class=argparse.ArgumentDefaultsHelpFormatter
os.chdir(args.caseroot)

if args.skip_preview_namelist is None:
args.skip_preview_namelist = False
args.skip_preview_namelist = False

return args.caseroot, args.skip_preview_namelist

Expand Down

0 comments on commit 5cee596

Please sign in to comment.