Parse command arguments for purse, list, buy and sell commands.