MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / print_options

Method print_options

pycontrast/options/base_options.py:114–124  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

112 return parser
113
114 def print_options(self, opt):
115 message = ''
116 message += '----------------- Options ---------------\n'
117 for k, v in sorted(vars(opt).items()):
118 comment = ''
119 default = self.parser.get_default(k)
120 if v != default:
121 comment = '\t[default: %s]' % str(default)
122 message += '{:>35}: {:<30}{}\n'.format(str(k), str(v), comment)
123 message += '----------------- End -------------------'
124 print(message)
125
126 def modify_options(self, opt):
127 raise NotImplementedError

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected