bfg: moved command line parser to own source files.