// Generated by CoffeeScript 2.3.2
(function() {
  var ConfigBuilder, IRMA_TYPE_PATH, args, cli, configTypes, defaults, env, path, ref, ref1;

  path = require("path");

  ({ConfigBuilder} = require("@l.degener/irma-config"));

  cli = require("./cli");

  defaults = require("./default-settings");

  configTypes = require("./config-types");

  args = process.argv.slice(2);

  env = {
    Server: require("./server")
  };

  IRMA_TYPE_PATH = (ref = (ref1 = process.env.IRMA_TYPE_PATH) != null ? ref1.split(path.delimiter) : void 0) != null ? ref : [];

  ConfigBuilder(defaults).types(configTypes).typePath(...IRMA_TYPE_PATH).bind(cli(...args)).run(env);

}).call(this);
