Using getopt to partse args as options