Skip to content

MILC Metadata

In order to initialize some things, such as the configuration file location and the version number reported by --version, MILC needs to know some basic information before you import cli. If you need to set the program's name, author name, and/or version number do it like this:

from milc import set_metadata

set_metadata(name='Florzelbop', version='1.0.0', author='Jane Doe')

from milc import cli

You should only do this once, and you should do it as early in your program's execution as possible.


Do not import set_metadata and cli at the same time! When you run set_metadata the cli object will be replaced, but your existing import will continue to reference the old cli object.

Custom Loggers

You can also use this to pass in custom loggers.

from milc import set_metadata

from my_program import custom_logger


from milc import cli