WIP getopt() functionality