module cli.cli_helper

Short summary

module mathenjeu.cli.cli_helper

Helpers to interpet command line parameters.

source on GitHub

Functions

function

truncated documentation

build_games

Interprets parameters.

name2activity

Converts something like mathenjeu.tests.qcms.py:simple_french_qcm into a class name. Calls function simple_french_qcm. …

Documentation

Helpers to interpet command line parameters.

source on GitHub

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

source on GitHub

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.

source on GitHub