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.argProcessorsargProcessors = [self]
8  self.parserparser = argparse.ArgumentParser()
9 
10  def processArgs(self):
11  for processor in self.argProcessorsargProcessors:
12  processor.add_arguments(self.parserparser)
13 
14  self.argsargs = self.parserparser.parse_args()
15 
16  for processor in self.argProcessorsargProcessors:
17  processor.parse_args(self.argsargs)
18 
19  @staticmethod
20  def add_arguments(parser):
21  pass
22 
23  @staticmethod
24  def parse_args(args):
25  pass
def add_arguments(parser)
Definition: ProcessArgs.py:20