Handle command line options