add: Implement GetOpt for option parsing