MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / our_help

Method our_help

tools/scripts/gdbext.py:95–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 raise NotImplementedError()
94
95 def our_help(self):
96 cmd_name, cmd_desc, required_args, optional_args = self.our_info()
97 all_args = required_args + optional_args
98 h = ' '.join(['-', cmd_name,
99 ' '.join([f'<{a[0]}>' for a in required_args]),
100 ' '.join([f'[<{a[0]}>]' for a in optional_args]),
101 ':', cmd_desc]) + '\n'
102 for arg_name, arg_desc, arg_type, arg_cmp in all_args:
103 h += f' <{arg_name}>: {arg_desc}\n'
104 return h
105
106 def our_error(self, what):
107 gdb_err_print('ERROR: ' + what + '\n' + self.our_help())

Callers 3

__init__Method · 0.95
our_errorMethod · 0.95
gdbext.pyFile · 0.80

Calls 2

our_infoMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected