Fixes Issue 11123 - std.getopt should support function callbacks.
Merge pull request #1601 from AndrejMitrovic/Fix11123

Issue 11123 - std.getopt should support function callbacks.