Implement getopt arg validation