MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / post_process

Method post_process

scripts/MakeSingleHeader.py:77–83  ·  view source on GitHub ↗

Turn sets into multiple line strings.

(self)

Source from the content-addressed store, hash-verified

75 raise RuntimeError("Action not understood, must be verbatim or set")
76
77 def post_process(self):
78 """
79 Turn sets into multiple line strings.
80 """
81 for key in self:
82 if isinstance(self[key], set):
83 self[key] = "\n".join(sorted(self[key]))
84
85
86def make_header(output, main_header, files, tag, namespace, macro=None, version=None):

Callers 1

make_headerFunction · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected