MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / main

Function main

example_code/item_098/mycli/mycli.py:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20import parser
21
22def main():
23 args = parser.PARSER.parse_args()
24
25 if args.command == "enhance":
26 enhance.do_enhance(args.file, args.amount)
27 elif args.command == "adjust":
28 adjust.do_adjust(args.file, args.brightness, args.contrast)
29 else:
30 raise RuntimeError("Not reachable")
31
32if __name__ == "__main__":
33 main()

Callers 8

mycli.pyFile · 0.70
utils_test.pyFile · 0.50
helper_test.pyFile · 0.50
assert_test.pyFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected