Convert gen_app_yaml.py to optparse
This allows for example the -f flag to be specified as the second
argument. Also add a '-i|--interactive' flag which asks for the
application name interactively.
# test settings file with syntax errorundefined_symbol