added argument parsing to gencases.py