def _mkfs(path, fs_type, uuid, force=False, options=None):
    """Build the command line required to format `path` as specified.

    Args:
        path    (str):  path to the device to format
        fs_type (str):  filesystem to use for the formatting
        uuid    (str):  UUID for the new filesystem
        force   (bool): force the formatting it True
        options (list): a list of extra-formatting options.

    Returns:
        list: the command line to use
    """
    funcname =  '_mkfs_{}'.format(fs_type)
    try:
        return globals()[funcname](path, uuid, force, options)
    except KeyError:
        raise ValueError('unsupported filesystem: {}'.format(fs_type))