module cli.cli_helper
¶
Short summary¶
module mathenjeu.cli.cli_helper
Helpers to interpet command line parameters.
Functions¶
function |
truncated documentation |
---|---|
Interprets parameters. |
|
Converts something like |
Documentation¶
Helpers to interpet command line parameters.
- mathenjeu.cli.cli_helper.build_games(games, fct_game)¶
Interprets parameters.
- Paramètres
games – string
fct_game – function which returns a game based on its name
- Renvoie
modified games, fct_game
- mathenjeu.cli.cli_helper.name2activity(name)¶
Converts something like
mathenjeu.tests.qcms.py:simple_french_qcm
into a class name. Calls function simple_french_qcm.- Paramètres
name – name
- Renvoie
result of simple_french_qcm
It works if name contains
':'
otherwise it returns name.