MCPcopy
hub / github.com/tanelpoder/0xtools / error

Method error

lib/0xtools/argparse.py:2373–2383  ·  view source on GitHub ↗

error(message: string) Prints a usage message incorporating the message to stderr and exits. If you override this in a subclass, it should not return -- it should either exit or raise an exception.

(self, message)

Source from the content-addressed store, hash-verified

2371 _sys.exit(status)
2372
2373 def error(self, message):
2374 """error(message: string)
2375
2376 Prints a usage message incorporating the message to stderr and
2377 exits.
2378
2379 If you override this in a subclass, it should not return -- it
2380 should either exit or raise an exception.
2381 """
2382 self.print_usage(_sys.stderr)
2383 self.exit(2, _('%s: error: %s\n') % (self.prog, message))

Callers 15

add_subparsersMethod · 0.95
parse_argsMethod · 0.95
parse_known_argsMethod · 0.95
_parse_known_argsMethod · 0.95
_read_args_from_filesMethod · 0.95
_parse_optionalMethod · 0.95
_get_option_tuplesMethod · 0.95
_load_fragmentsMethod · 0.80
get_fragmentMethod · 0.80
_load_histogram_dataMethod · 0.80
_load_heatmap_dataMethod · 0.80
save_positionMethod · 0.80

Calls 2

print_usageMethod · 0.95
exitMethod · 0.95

Tested by 2

on_mountMethod · 0.64
test_query_executionFunction · 0.64