cpp for parsing status vs cmd