# metaconfig API

`add_path_config(confname, default, description)`

  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, default, description)`

  confname: String
  default: String
  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, valtype, default, description)`

  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, val)`

  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)`

  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.