INNER CODE UNIT · Python
__init__
dhondta/python-codext · src/codext/__init__.py:83
def __init__(self, prog, **kwargs):
kwargs['max_help_position'] = 32
super(_CustomFormatter, self).__init__(prog, **kwargs)
def _format_action_invocation(self, action):
if not action.option_strings:
metavar, = self._metavar_formatter(action, action.dest)(1)
return metavar
else:
return ", ".join(action.option_strings)
descr = "Codecs Extension (CodExt) {}\n\nAuthor : {} ({})\nCopyright: {}\nLicense : {}\nSource : {}\n" \
"\nThis tool allows to encode/decode input strings/files with an extended set of codecs.\n\n" \
.format(__version__, __author__, __email__, __copyright__, __license__, __source__)
examples = "usage examples:\n- " + "\n- ".join([
"codext search bitcoin",
"codext decode base32 -i file.b32",
"codext encode morse < to_be_encoded.txt",