Implementation of simple command parser