added command line support for extract-schema