Prelimary command parsing