MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / main

Function main

tools/python-3.11.9-amd64/Tools/scripts/cleanfuture.py:57–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 sys.stderr.write(msg)
56
57def main():
58 import getopt
59 global verbose, recurse, dryrun
60 try:
61 opts, args = getopt.getopt(sys.argv[1:], "drv")
62 except getopt.error as msg:
63 errprint(msg)
64 return
65 for o, a in opts:
66 if o == '-d':
67 dryrun += 1
68 elif o == '-r':
69 recurse += 1
70 elif o == '-v':
71 verbose += 1
72 if not args:
73 errprint("Usage:", __doc__)
74 return
75 for arg in args:
76 check(arg)
77
78def check(file):
79 if os.path.isdir(file) and not os.path.islink(file):

Callers 1

cleanfuture.pyFile · 0.70

Calls 3

errprintFunction · 0.70
checkFunction · 0.70
getoptMethod · 0.45

Tested by

no test coverage detected