Skip to content

Commit

Permalink
Update smarts.py to have required and optional arguments sections
Browse files Browse the repository at this point in the history
  • Loading branch information
MiCurry committed May 12, 2020
1 parent 0689827 commit 63839bd
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions smarts.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,28 +156,32 @@ def run_cmd(args):

parser = argparse.ArgumentParser(prog="smarts",
description="A regression testing system for MPAS",
epilog="Don't Panic (This is the Epilog Area)"
epilog=None
)

parser.add_argument('-e', '--env-file',
required = parser.add_argument_group('Required arguments')
optional = parser.add_argument_group('Optional arguments')

required.add_argument('-e', '--env-file',
dest='env',
help='The location of the env.yaml file',
metavar='env.yaml',
default=None,
nargs=1)
parser.add_argument('-s', '--src-dir',
required.add_argument('-s', '--src-dir',
dest='src',
help='The directory that holds the code to test changes (MPAS-Model)',
metavar='dir',
default=None,
nargs=1)
parser.add_argument('-t', '--test-dir',
required.add_argument('-t', '--test-dir',
dest='dir',
help='The location of the test directory',
metavar='dir',
default=None,
nargs=1)
parser.add_argument('-v', '--verbose',

optional.add_argument('-v', '--verbose',
dest='verbose',
help="Output debug level",
type=int,
Expand Down

0 comments on commit 63839bd

Please sign in to comment.