Call this method when your program is about to stop execution to enable execution of CleanUp hooks.
void main(in string[] args) { auto options = processOptions(parseArgs!Options(args[1 .. $])); scope (exit) cast(void) cleanUp(options); /// doing something productive ... }
See Implementation
Call this method when your program is about to stop execution to enable execution of CleanUp hooks.