Use an enum instead of a static const
Use iterators to iterator over the command line arguments