MPAS-JEDI
ProcessArgs.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
3
import
argparse
4
5
class
ProcessArgs
:
6
def
__init__
(self):
7
self.
argProcessors
argProcessors = [self]
8
self.
parser
parser = argparse.ArgumentParser()
9
10
def
processArgs
(self):
11
for
processor
in
self.
argProcessors
argProcessors:
12
processor.add_arguments(self.
parser
parser)
13
14
self.
args
args = self.
parser
parser.
parse_args
()
15
16
for
processor
in
self.
argProcessors
argProcessors:
17
processor.parse_args(self.
args
args)
18
19
@staticmethod
20
def
add_arguments
(parser):
21
pass
22
23
@staticmethod
24
def
parse_args
(args):
25
pass
ProcessArgs.ProcessArgs
Definition:
ProcessArgs.py:5
ProcessArgs.ProcessArgs.add_arguments
def add_arguments(parser)
Definition:
ProcessArgs.py:20
ProcessArgs.ProcessArgs.args
args
Definition:
ProcessArgs.py:14
ProcessArgs.ProcessArgs.__init__
def __init__(self)
Definition:
ProcessArgs.py:6
ProcessArgs.ProcessArgs.argProcessors
argProcessors
Definition:
ProcessArgs.py:7
ProcessArgs.ProcessArgs.parser
parser
Definition:
ProcessArgs.py:8
ProcessArgs.ProcessArgs.processArgs
def processArgs(self)
Definition:
ProcessArgs.py:10
ProcessArgs.ProcessArgs.parse_args
def parse_args(args)
Definition:
ProcessArgs.py:24
mpas-bundle
mpas-jedi
graphics
cycling
ProcessArgs.py
Generated on Thu Sep 9 2021 12:56:27 for MPAS-JEDI by
1.9.1