Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parse_args(self, args, paramtypes):
typedict = {'bool' : {'action' : 'store_true'},
'file' : {'type' : str , 'nargs' : 1, 'action' : FileAction},
'int' : {'type' : int , 'nargs' : 1},
'str' : {'type' : str , 'nargs' : 1},
}
progname = os.path.basename(sys.argv[0]) + ' run {}'.format(self.name)
parser = argparse.ArgumentParser(prog = progname,
conflict_handler='resolve')
param_groups = {}
_descr = {'plusarg' : 'Verilog plusargs (Run-time option)',
'vlogparam' : 'Verilog parameters (Compile-time option)',
'vlogdefine' : 'Verilog defines (Compile-time global symbol)',
'generic' : 'VHDL generic (Run-time option)',
'cmdlinearg' : 'Command-line arguments (Run-time option)'}
param_type_map = {}
for name, param in self.parameters.items():
def parse_args(self, args, paramtypes):
if self.parsed_args:
return
typedict = {'bool' : {'action' : 'store_true'},
'file' : {'type' : str , 'nargs' : 1, 'action' : FileAction},
'int' : {'type' : int , 'nargs' : 1},
'str' : {'type' : str , 'nargs' : 1},
}
progname = os.path.basename(sys.argv[0]) + ' run {}'.format(self.name)
parser = argparse.ArgumentParser(prog = progname,
conflict_handler='resolve')
param_groups = {}
_descr = {'plusarg' : 'Verilog plusargs (Run-time option)',
'vlogparam' : 'Verilog parameters (Compile-time option)',
'vlogdefine' : 'Verilog defines (Compile-time global symbol)',
'generic' : 'VHDL generic (Run-time option)',
'cmdlinearg' : 'Command-line arguments (Run-time option)'}
param_type_map = {}
for name, param in self.parameters.items():