Google

metaconfig API

add_path_config( confname: String, default: String, description: String )

defines a path config option confname. default is the default value of this option. description is the short description of this option which is used from --help global option.

add_bool_config( confname: String, default: bool, description: String )

defines a bool config option confname. default is the default value of this option. description is the short description of this option which is used from --help global option.

add_config( confname: String, valtype: String, default: String, description: String )

defines a config option confname. valtype is a string which indicates type of value. e.g. "PATH" for path config, "BOOL" for bool config. default is the default value of this option. description is the short description of this option which is used from --help global option.

set_config_default( confname: String, val: String/bool )

set default value of config confname to val. If confname is a bool config, val should be boolean. Else val should be a String.

remove_config( confname: String )

removes config entry confname from the installer completely. You must use this method at your own lisk. For example, remove_config("prefix") causes fatal error.