MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / error

Method error

Compiler/compilerLib.py:58–66  ·  view source on GitHub ↗
(self, err)

Source from the content-addressed store, hash-verified

56 if self.execute:
57 class MyOptionParser(OptionParser):
58 def error(self, err):
59 if "no such option" in err:
60 print(self.get_usage(), file=sys.stderr)
61 print("error:", err, file=sys.stderr)
62 print("Remember to put run-time arguments "
63 "after '--' as shown above", file=sys.stderr)
64 sys.exit(1)
65 else:
66 OptionParser.error(self, err)
67 else:
68 MyOptionParser = OptionParser
69 parser = MyOptionParser(usage=self.usage)

Callers 1

parse_argsMethod · 0.45

Calls 2

printFunction · 0.85
get_usageMethod · 0.45

Tested by

no test coverage detected