Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# -*- coding: utf-8 -*-
2"""
3@file
4@brief Implements command line ``python -m mathenjeu <command> <args>``.
5"""
6import sys
7from pyquickhelper.cli import cli_main_helper
10def main(args, fLOG=print):
11 """
12 Implements ``python -m ensae_teaching_cs <command> <args>``.
14 @param args command line arguments
15 @param fLOG logging function
16 """
17 try:
18 from .cli import inspect_source_code
19 except ImportError:
20 from ensae_teaching_cs.cli import inspect_source_code
22 fcts = dict(inspect_source_code=inspect_source_code)
23 cli_main_helper(fcts, args=args, fLOG=fLOG)
26if __name__ == "__main__":
27 main(sys.argv[1:])