module source.app; import singlog; import window; import std.path; void main(string[] args) { log.output(log.output.file) .program(baseName(args[0])) .level(log.level.debugging) .file("/tmp/" ~ baseName(args[0]) ~ ".log"); switch (baseName(args[0])) { case "password": password(); break; case "menu": menu(); break; default: break; } }