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