[packagedb-cli] Rename the parser variable and layout the code