factor out flag parsing from enormous NinjaMain()
factor out flag parsing from enormous NinjaMain()

autopulated/ninja,fuchsia-mirror/third_party-ninja,rjogrady/ninja,Ju2ender/ninja,syntheticpp/ninja,rnk/ninja,purcell/ninja,nicolasdespres/ninja,metti/ninja,yannicklm/ninja,sxlin/dist_ninja,nico/ninja,iwadon/ninja,bradking/ninja,dendy/ninja,nocnokneo/ninja,lizh06/ninja,kissthink/ninja,ctiller/ninja,atetubou/ninja,jimon/ninja,nafest/ninja,colincross/ninja,Qix-/ninja,nafest/ninja,tfarina/ninja,atetubou/ninja,rjogrady/ninja,martine/ninja,jhanssen/ninja,synaptek/ninja,guiquanz/ninja,guiquanz/ninja,fifoforlifo/ninja,rnk/ninja,hnney/ninja,glensc/ninja,mydongistiny/ninja,rnk/ninja,ignatenkobrain/ninja,maruel/ninja,syntheticpp/ninja,bradking/ninja,kissthink/ninja,bradking/ninja,jimon/ninja,tfarina/ninja,purcell/ninja,glensc/ninja,Maratyszcza/ninja-pypi,dpwright/ninja,vvvrrooomm/ninja,sgraham/ninja,ndsol/subninja,mohamed/ninja,purcell/ninja,dpwright/ninja,rnk/ninja,nicolasdespres/ninja,syntheticpp/ninja,lizh06/ninja,sorbits/ninja,ThiagoGarciaAlves/ninja,Maratyszcza/ninja-pypi,sxlin/dist_ninja,sgraham/ninja,mydongistiny/ninja,AoD314/ninja,kimgr/ninja,juntalis/ninja,metti/ninja,drbo/ninja,nocnokneo/ninja,drbo/ninja,vvvrrooomm/ninja,drbo/ninja,jendrikillner/ninja,sxlin/dist_ninja,automeka/ninja,nafest/ninja,mohamed/ninja,Ju2ender/ninja,Maratyszcza/ninja-pypi,ninja-build/ninja,yannicklm/ninja,nicolasdespres/ninja,yannicklm/ninja,tfarina/ninja,ilor/ninja,iwadon/ninja,tfarina/ninja,martine/ninja,Qix-/ninja,ctiller/ninja,fuchsia-mirror/third_party-ninja,Maratyszcza/ninja-pypi,lizh06/ninja,automeka/ninja,fifoforlifo/ninja,kissthink/ninja,ilor/ninja,martine/ninja,autopulated/ninja,mgaunard/ninja,automeka/ninja,mydongistiny/ninja,juntalis/ninja,juntalis/ninja,nico/ninja,liukd/ninja,mydongistiny/ninja,liukd/ninja,juntalis/ninja,Ju2ender/ninja,sorbits/ninja,bmeurer/ninja,sorbits/ninja,moroten/ninja,ilor/ninja,rjogrady/ninja,metti/ninja,jhanssen/ninja,maruel/ninja,lizh06/ninja,synaptek/ninja,liukd/ninja,jimon/ninja,vvvrrooomm/ninja,dorgonman/ninja,nickhutchinson/ninja,dendy/ninja,purcell/ninja,AoD314/ninja,atetubou/ninja,atetubou/ninja,maruel/ninja,sorbits/ninja,sgraham/ninja,moroten/ninja,bmeurer/ninja,ctiller/ninja,colincross/ninja,colincross/ninja,ndsol/subninja,fuchsia-mirror/third_party-ninja,jhanssen/ninja,glensc/ninja,martine/ninja,nico/ninja,kimgr/ninja,ctiller/ninja,dorgonman/ninja,nickhutchinson/ninja,fifoforlifo/ninja,mgaunard/ninja,fuchsia-mirror/third_party-ninja,rjogrady/ninja,nickhutchinson/ninja,ThiagoGarciaAlves/ninja,synaptek/ninja,sxlin/dist_ninja,sxlin/dist_ninja,sgraham/ninja,moroten/ninja,jendrikillner/ninja,bradking/ninja,nafest/ninja,sxlin/dist_ninja,autopulated/ninja,nocnokneo/ninja,ThiagoGarciaAlves/ninja,metti/ninja,nocnokneo/ninja,jimon/ninja,liukd/ninja,dorgonman/ninja,ignatenkobrain/ninja,jhanssen/ninja,sxlin/dist_ninja,glensc/ninja,ilor/ninja,nicolasdespres/ninja,ignatenkobrain/ninja,fifoforlifo/ninja,jendrikillner/ninja,jendrikillner/ninja,mgaunard/ninja,AoD314/ninja,dendy/ninja,ndsol/subninja,vvvrrooomm/ninja,ignatenkobrain/ninja,dorgonman/ninja,drbo/ninja,hnney/ninja,ninja-build/ninja,colincross/ninja,ninja-build/ninja,moroten/ninja,guiquanz/ninja,kimgr/ninja,synaptek/ninja,Qix-/ninja,guiquanz/ninja,bmeurer/ninja,Qix-/ninja,AoD314/ninja,iwadon/ninja,hnney/ninja,kimgr/ninja,ninja-build/ninja,kissthink/ninja,mohamed/ninja,maruel/ninja,syntheticpp/ninja,iwadon/ninja,hnney/ninja,automeka/ninja,mgaunard/ninja,nico/ninja,dendy/ninja,dpwright/ninja,ThiagoGarciaAlves/ninja,ndsol/subninja,bmeurer/ninja,nickhutchinson/ninja,mohamed/ninja,yannicklm/ninja,autopulated/ninja,Ju2ender/ninja,dpwright/ninja