getting command and -m flag