commands: Move initialization of flags in separate function
commands: Move initialization of flags in separate function

And clean up flag variables.
tubo028/hugo,mdhender/hugo,digitalcraftsman/hugo,bogem/hugo,MarkDBlackwell/hugo,fedelibre/hugo,Zenithar/hugo,gohugoio/hugo,mayah/hugo,anthonyfok/hugo,digitalcraftsman/hugo,MarkDBlackwell/hugo,mdhender/hugo,gohugoio/hugo,Zenithar/hugo,mitchchn/hugo,anthonyfok/hugo,bogem/hugo,jygastaud/hugo,fedelibre/hugo,gohugoio/hugo,fedelibre/hugo,mitchchn/hugo,tubo028/hugo,fedelibre/hugo,mdhender/hugo,mayah/hugo,jygastaud/hugo,mdhender/hugo,anthonyfok/hugo