def get_arg_parse_arguments(self):
ret = dict()<EOL>if self._required:<EOL><INDENT>if self.value is not None:<EOL><INDENT>ret["<STR_LIT:default>"] = self.value<EOL><DEDENT>else:<EOL><INDENT>ret["<STR_LIT>"] = True<EOL><DEDENT><DEDENT>ret["<STR_LIT>"] = self._name<EOL>if not self.e_type_exclude:<EOL><INDENT>if self.e_type == int or self.e_type == float:<EOL><INDENT>ret["<STR_LIT:type>"] = self.e_type<EOL><DEDENT><DEDENT>if self.value is not None:<EOL><INDENT>ret["<STR_LIT:default>"] = self.value<EOL><DEDENT>if self._desc:<EOL><INDENT>ret["<STR_LIT>"] = self._desc<EOL><DEDENT>return ret<EOL>
During the element declaration, all configuration file requirements
and all cli requirements have been described once.
This method will build a dict containing all argparse options.
It can be used to feed argparse.ArgumentParser.
You does not need to have multiple declarations.