Initial shell: parse commandline and initialize logging