cleanUp

Call this method when your program is about to stop execution to enable execution of CleanUp hooks.

Options
cleanUp
(
Options
)
(
Options options
)

Examples

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 }

Meta