Separate command-line stuff from the main core of mersy