mpf.commands

Cli commands in MPF.

class mpf.commands.CommandLineUtility(path=None)

Default cli entry point.

Initialise cli entry point.

classmethod check_python_version()

Check that we have at least python 3.

execute()

Actually run the command that was just set up.

get_external_commands()

Entry point to hook more commands.

This is used from mpf mc.

get_machine_path(machine_path_hint)

Return machine path.

parse_args()

Parse arguments.

mpf.commands.run_from_command_line(args=None)

Run cli command.