MCPcopy Index your code
hub / github.com/RustPython/RustPython / main

Function main

Lib/tabnanny.py:38–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 sys.exit(1)
37
38def main():
39 import getopt
40
41 global verbose, filename_only
42 try:
43 opts, args = getopt.getopt(sys.argv[1:], "qv")
44 except getopt.error as msg:
45 errprint(msg)
46 for o, a in opts:
47 if o == '-q':
48 filename_only = filename_only + 1
49 if o == '-v':
50 verbose = verbose + 1
51 if not args:
52 errprint("Usage:", sys.argv[0], "[-v] file_or_directory ...")
53 for arg in args:
54 check(arg)
55
56class NannyNag(Exception):
57 """

Callers 1

tabnanny.pyFile · 0.70

Calls 2

errprintFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected