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

Function main

example_code/item_098/mycli/mycli_faster.py:20–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

mycli_faster.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected