cli: extract ParseResult() and ParseError()
cli: extract ParseResult() and ParseError()

and make callable higher up with (nRet == 0) check.

Xekyo/bitcoin,apoelstra/bitcoin,bitcoin/bitcoin,fujicoin/fujicoin,namecoin/namecoin-core,tecnovert/particl-core,jlopp/statoshi,jambolo/bitcoin,jlopp/statoshi,kallewoof/bitcoin,fujicoin/fujicoin,MeshCollider/bitcoin,sipsorcery/bitcoin,ajtowns/bitcoin,jnewbery/bitcoin,domob1812/namecore,namecoin/namecoin-core,domob1812/namecore,bitcoinknots/bitcoin,namecoin/namecore,pataquets/namecoin-core,qtumproject/qtum,litecoin-project/litecoin,prusnak/bitcoin,jonasschnelli/bitcoin,qtumproject/qtum,jlopp/statoshi,litecoin-project/litecoin,EthanHeilman/bitcoin,mruddy/bitcoin,rnicoll/dogecoin,alecalve/bitcoin,GroestlCoin/bitcoin,particl/particl-core,n1bor/bitcoin,bitcoinsSG/bitcoin,tecnovert/particl-core,bitcoinknots/bitcoin,GroestlCoin/GroestlCoin,Sjors/bitcoin,bitcoinknots/bitcoin,n1bor/bitcoin,apoelstra/bitcoin,ajtowns/bitcoin,yenliangl/bitcoin,rnicoll/bitcoin,MeshCollider/bitcoin,MeshCollider/bitcoin,jnewbery/bitcoin,GroestlCoin/bitcoin,pataquets/namecoin-core,GroestlCoin/GroestlCoin,EthanHeilman/bitcoin,bitcoin/bitcoin,fanquake/bitcoin,particl/particl-core,dscotese/bitcoin,anditto/bitcoin,ajtowns/bitcoin,domob1812/bitcoin,practicalswift/bitcoin,qtumproject/qtum,andreaskern/bitcoin,n1bor/bitcoin,achow101/bitcoin,alecalve/bitcoin,AkioNak/bitcoin,MarcoFalke/bitcoin,mm-s/bitcoin,mruddy/bitcoin,pstratem/bitcoin,particl/particl-core,ElementsProject/elements,kallewoof/bitcoin,jonasschnelli/bitcoin,EthanHeilman/bitcoin,jamesob/bitcoin,fanquake/bitcoin,fujicoin/fujicoin,MarcoFalke/bitcoin,sstone/bitcoin,jonasschnelli/bitcoin,qtumproject/qtum,qtumproject/qtum,rnicoll/dogecoin,ElementsProject/elements,jambolo/bitcoin,n1bor/bitcoin,anditto/bitcoin,dscotese/bitcoin,yenliangl/bitcoin,JeremyRubin/bitcoin,rnicoll/dogecoin,apoelstra/bitcoin,bitcoin/bitcoin,litecoin-project/litecoin,Xekyo/bitcoin,prusnak/bitcoin,AkioNak/bitcoin,alecalve/bitcoin,tecnovert/particl-core,kallewoof/bitcoin,sipsorcery/bitcoin,ajtowns/bitcoin,MarcoFalke/bitcoin,alecalve/bitcoin,Xekyo/bitcoin,lateminer/bitcoin,Xekyo/bitcoin,practicalswift/bitcoin,namecoin/namecoin-core,fujicoin/fujicoin,n1bor/bitcoin,jambolo/bitcoin,sstone/bitcoin,bitcoinknots/bitcoin,fanquake/bitcoin,anditto/bitcoin,yenliangl/bitcoin,bitcoin/bitcoin,cdecker/bitcoin,andreaskern/bitcoin,AkioNak/bitcoin,prusnak/bitcoin,jambolo/bitcoin,namecoin/namecore,MarcoFalke/bitcoin,prusnak/bitcoin,AkioNak/bitcoin,particl/particl-core,achow101/bitcoin,apoelstra/bitcoin,GroestlCoin/bitcoin,qtumproject/qtum,rnicoll/bitcoin,pataquets/namecoin-core,jamesob/bitcoin,apoelstra/bitcoin,andreaskern/bitcoin,Xekyo/bitcoin,prusnak/bitcoin,anditto/bitcoin,namecoin/namecoin-core,ajtowns/bitcoin,tecnovert/particl-core,mm-s/bitcoin,sstone/bitcoin,jambolo/bitcoin,andreaskern/bitcoin,GroestlCoin/GroestlCoin,dscotese/bitcoin,jlopp/statoshi,JeremyRubin/bitcoin,midnightmagic/bitcoin,bitcoinsSG/bitcoin,GroestlCoin/GroestlCoin,bitcoinsSG/bitcoin,lateminer/bitcoin,litecoin-project/litecoin,Sjors/bitcoin,MarcoFalke/bitcoin,fujicoin/fujicoin,instagibbs/bitcoin,achow101/bitcoin,fanquake/bitcoin,namecoin/namecore,pataquets/namecoin-core,rnicoll/bitcoin,domob1812/bitcoin,GroestlCoin/GroestlCoin,fanquake/bitcoin,instagibbs/bitcoin,instagibbs/bitcoin,namecoin/namecore,qtumproject/qtum,yenliangl/bitcoin,midnightmagic/bitcoin,kallewoof/bitcoin,jlopp/statoshi,ElementsProject/elements,jnewbery/bitcoin,sipsorcery/bitcoin,GroestlCoin/GroestlCoin,mruddy/bitcoin,fanquake/bitcoin,achow101/bitcoin,pstratem/bitcoin,achow101/bitcoin,rnicoll/dogecoin,jamesob/bitcoin,EthanHeilman/bitcoin,dscotese/bitcoin,mruddy/bitcoin,midnightmagic/bitcoin,mm-s/bitcoin,MeshCollider/bitcoin,sipsorcery/bitcoin,AkioNak/bitcoin,jlopp/statoshi,Sjors/bitcoin,MeshCollider/bitcoin,bitcoin/bitcoin,tecnovert/particl-core,Xekyo/bitcoin,anditto/bitcoin,cdecker/bitcoin,EthanHeilman/bitcoin,JeremyRubin/bitcoin,domob1812/namecore,domob1812/namecore,jnewbery/bitcoin,rnicoll/dogecoin,kallewoof/bitcoin,JeremyRubin/bitcoin,tecnovert/particl-core,lateminer/bitcoin,yenliangl/bitcoin,fujicoin/fujicoin,domob1812/bitcoin,Sjors/bitcoin,jamesob/bitcoin,particl/particl-core,rnicoll/bitcoin,domob1812/namecore,pataquets/namecoin-core,mm-s/bitcoin,mm-s/bitcoin,jamesob/bitcoin,dscotese/bitcoin,JeremyRubin/bitcoin,domob1812/bitcoin,sipsorcery/bitcoin,bitcoinsSG/bitcoin,bitcoinsSG/bitcoin,dscotese/bitcoin,lateminer/bitcoin,apoelstra/bitcoin,practicalswift/bitcoin,bitcoinsSG/bitcoin,achow101/bitcoin,andreaskern/bitcoin,pataquets/namecoin-core,yenliangl/bitcoin,mm-s/bitcoin,sstone/bitcoin,lateminer/bitcoin,jambolo/bitcoin,jonasschnelli/bitcoin,namecoin/namecore,particl/particl-core,namecoin/namecoin-core,prusnak/bitcoin,namecoin/namecore,pstratem/bitcoin,jamesob/bitcoin,AkioNak/bitcoin,domob1812/bitcoin,andreaskern/bitcoin,cdecker/bitcoin,MarcoFalke/bitcoin,jonasschnelli/bitcoin,n1bor/bitcoin,ElementsProject/elements,rnicoll/bitcoin,midnightmagic/bitcoin,lateminer/bitcoin,litecoin-project/litecoin,namecoin/namecoin-core,ElementsProject/elements,mruddy/bitcoin,sstone/bitcoin,EthanHeilman/bitcoin,midnightmagic/bitcoin,pstratem/bitcoin,midnightmagic/bitcoin,GroestlCoin/bitcoin,MeshCollider/bitcoin,sipsorcery/bitcoin,litecoin-project/litecoin,anditto/bitcoin,sstone/bitcoin,instagibbs/bitcoin,ajtowns/bitcoin,mruddy/bitcoin,bitcoin/bitcoin,cdecker/bitcoin,jnewbery/bitcoin,Sjors/bitcoin,domob1812/bitcoin,alecalve/bitcoin,pstratem/bitcoin,ElementsProject/elements,instagibbs/bitcoin,practicalswift/bitcoin,bitcoinknots/bitcoin,domob1812/namecore,practicalswift/bitcoin,alecalve/bitcoin,cdecker/bitcoin,instagibbs/bitcoin,GroestlCoin/bitcoin,JeremyRubin/bitcoin,GroestlCoin/bitcoin,practicalswift/bitcoin,rnicoll/bitcoin,pstratem/bitcoin,kallewoof/bitcoin,cdecker/bitcoin