update-bash: handle option flags like -vd
update-bash: handle option flags like -vd

Per @UniqMartin's advice, the original code will fail to handle flags
like `-vd`, because once a case is handled, no other cases are evaluate.

kodabb/homebrew,DoomHammer/linuxbrew,recruit-tech/homebrew,ybott/homebrew,dplarson/homebrew,utzig/homebrew,eighthave/homebrew,ablyler/homebrew,danieroux/homebrew,Homebrew/linuxbrew,frodeaa/homebrew,3van/homebrew,MoSal/homebrew,SteveClement/homebrew,AlexejK/homebrew,pcottle/homebrew,MoSal/homebrew,galaxy001/homebrew,OJFord/homebrew,DoomHammer/linuxbrew,alebcay/homebrew,bigbes/homebrew,gicmo/homebrew,influxdb/homebrew,nandub/homebrew,ear/homebrew,dunn/homebrew,quantumsteve/homebrew,yumitsu/homebrew,georgschoelly/homebrew,frodeaa/homebrew,hanxue/homebrew,Linuxbrew/linuxbrew,optikfluffel/homebrew,theeternalsw0rd/homebrew,reelsense/linuxbrew,chadcatlett/homebrew,Homebrew/linuxbrew,jamer/homebrew,ExtremeMan/homebrew,skinny-framework/homebrew,dplarson/homebrew,Angeldude/linuxbrew,quantumsteve/homebrew,drewwells/homebrew,polishgeeks/homebrew,Chilledheart/homebrew,jamer/homebrew,eighthave/homebrew,ybott/homebrew,brunchboy/homebrew,johanhammar/homebrew,osimola/homebrew,thinker0/homebrew,sometimesfood/homebrew,Chilledheart/homebrew,ExtremeMan/homebrew,hongkongkiwi/homebrew,3van/homebrew,Asuranceturix/homebrew,BrewTestBot/homebrew,nandub/homebrew,dickeyxxx/homebrew,jsjohnst/homebrew,elyscape/homebrew,esamson/homebrew,kodabb/homebrew,totalvoidness/homebrew,Linuxbrew/linuxbrew,ExtremeMan/homebrew,mkrapp/homebrew,reelsense/homebrew,Red54/homebrew,ryanfb/homebrew,jsjohnst/homebrew,influxdb/homebrew,gnubila-france/linuxbrew,jsjohnst/homebrew,hongkongkiwi/homebrew,TaylorMonacelli/homebrew,dickeyxxx/homebrew,drbenmorgan/linuxbrew,ralic/homebrew,sakra/homebrew,keith/homebrew,joshfriend/homebrew,eighthave/homebrew,BrewTestBot/homebrew,galaxy001/homebrew,kevinastone/homebrew,getgauge/homebrew,cprecioso/homebrew,pcottle/homebrew,skatsuta/homebrew,benjaminfrank/homebrew,quantumsteve/homebrew,sakra/homebrew,optikfluffel/homebrew,gicmo/homebrew,ybott/homebrew,base10/homebrew,influxdata/homebrew,getgauge/homebrew,Asuranceturix/homebrew,LinusU/homebrew,pcottle/homebrew,muellermartin/homebrew,kenips/homebrew,treyharris/homebrew,scpeters/homebrew,tschoonj/homebrew,emcrisostomo/homebrew,muellermartin/homebrew,SteveClement/homebrew,scorphus/homebrew,SuperNEMO-DBD/cadfaelbrew,recruit-tech/homebrew,lrascao/homebrew,nandub/homebrew,influxdata/homebrew,yazuuchi/homebrew,iostat/homebrew2,mobileoverlord/homebrew-1,keith/homebrew,menivaitsi/homebrew,pcottle/homebrew,deorth/homebrew,dickeyxxx/homebrew,sjackman/linuxbrew,elyscape/homebrew,filcab/homebrew,saketkc/linuxbrew,MartinDelille/homebrew,recruit-tech/homebrew,SuperNEMO-DBD/cadfaelbrew,georgschoelly/homebrew,theeternalsw0rd/homebrew,esamson/homebrew,skinny-framework/homebrew,ebouaziz/linuxbrew,LinusU/homebrew,esamson/homebrew,decors/homebrew,hanxue/homebrew,getgauge/homebrew,cscetbon/homebrew,emcrisostomo/homebrew,youtux/homebrew,ablyler/homebrew,elgertam/homebrew,SuperNEMO-DBD/cadfaelbrew,Linuxbrew/linuxbrew,cscetbon/homebrew,dutchcoders/homebrew,booi/homebrew,johanhammar/homebrew,esamson/homebrew,cosmo0920/homebrew,TaylorMonacelli/homebrew,redpen-cc/homebrew,DoomHammer/linuxbrew,gawbul/homebrew,Chilledheart/homebrew,benjaminfrank/homebrew,base10/homebrew,slyphon/homebrew,sometimesfood/homebrew,cprecioso/homebrew,afh/homebrew,hakamadare/homebrew,polishgeeks/homebrew,ear/homebrew,dunn/homebrew,jsjohnst/homebrew,Red54/homebrew,elyscape/homebrew,johanhammar/homebrew,frodeaa/homebrew,bukzor/linuxbrew,vigo/homebrew,ebouaziz/linuxbrew,saketkc/linuxbrew,reelsense/homebrew,Linuxbrew/linuxbrew,slyphon/homebrew,josa42/homebrew,alebcay/homebrew,danieroux/homebrew,mkrapp/homebrew,afh/homebrew,dericed/homebrew,OJFord/homebrew,influxdb/homebrew,youtux/homebrew,tschoonj/homebrew,vigo/homebrew,reelsense/linuxbrew,alebcay/homebrew,bigbes/homebrew,redpen-cc/homebrew,osimola/homebrew,youtux/homebrew,vigo/homebrew,royhodgman/homebrew,ryanfb/homebrew,treyharris/homebrew,ablyler/homebrew,sjackman/linuxbrew,OJFord/homebrew,ilovezfs/homebrew,lrascao/homebrew,dplarson/homebrew,mkrapp/homebrew,marcwebbie/homebrew,adamliter/homebrew,kenips/homebrew,hongkongkiwi/homebrew,base10/homebrew,kevinastone/homebrew,BrewTestBot/homebrew,josa42/homebrew,scpeters/homebrew,ilovezfs/homebrew,alebcay/homebrew,scorphus/homebrew,keith/homebrew,dickeyxxx/homebrew,tutumcloud/homebrew,filcab/homebrew,kevinastone/homebrew,mobileoverlord/homebrew-1,ExtremeMan/homebrew,haihappen/homebrew,elgertam/homebrew,SteveClement/homebrew,emcrisostomo/homebrew,kenips/homebrew,deorth/homebrew,drewwells/homebrew,elgertam/homebrew,BrewTestBot/homebrew,kevinastone/homebrew,cosmo0920/homebrew,dalanmiller/homebrew,retrography/homebrew,reelsense/linuxbrew,totalvoidness/homebrew,Homebrew/homebrew,kodabb/homebrew,georgschoelly/homebrew,ralic/homebrew,yumitsu/homebrew,TaylorMonacelli/homebrew,tutumcloud/homebrew,georgschoelly/homebrew,gawbul/homebrew,gicmo/homebrew,reelsense/homebrew,utzig/homebrew,cscetbon/homebrew,ryanfb/homebrew,yazuuchi/homebrew,SuperNEMO-DBD/cadfaelbrew,emcrisostomo/homebrew,Homebrew/homebrew,theeternalsw0rd/homebrew,3van/homebrew,Chilledheart/homebrew,MoSal/homebrew,nandub/homebrew,danieroux/homebrew,sometimesfood/homebrew,hakamadare/homebrew,utzig/homebrew,brunchboy/homebrew,getgauge/homebrew,sferik/homebrew,vigo/homebrew,influxdata/homebrew,royhodgman/homebrew,drbenmorgan/linuxbrew,Angeldude/linuxbrew,tutumcloud/homebrew,slyphon/homebrew,jamer/homebrew,marcwebbie/homebrew,haihappen/homebrew,decors/homebrew,mobileoverlord/homebrew-1,mobileoverlord/homebrew-1,utzig/homebrew,liamstask/homebrew,joshfriend/homebrew,gawbul/homebrew,jarrettmeyer/homebrew,drewwells/homebrew,dalanmiller/homebrew,thinker0/homebrew,treyharris/homebrew,3van/homebrew,menivaitsi/homebrew,jarrettmeyer/homebrew,tschoonj/homebrew,Red54/homebrew,chadcatlett/homebrew,iostat/homebrew2,gnubila-france/linuxbrew,sferik/homebrew,dunn/homebrew,johanhammar/homebrew,dalanmiller/homebrew,michaKFromParis/homebrew-sparks,joshfriend/homebrew,cosmo0920/homebrew,frodeaa/homebrew,MartinDelille/homebrew,sakra/homebrew,decors/homebrew,tschoonj/homebrew,booi/homebrew,skatsuta/homebrew,osimola/homebrew,lrascao/homebrew,MartinDelille/homebrew,dericed/homebrew,retrography/homebrew,ebouaziz/linuxbrew,gnubila-france/linuxbrew,optikfluffel/homebrew,dericed/homebrew,sakra/homebrew,Angeldude/linuxbrew,dplarson/homebrew,danieroux/homebrew,dongcarl/homebrew,Homebrew/homebrew,kodabb/homebrew,skinny-framework/homebrew,dutchcoders/homebrew,ybott/homebrew,iostat/homebrew2,muellermartin/homebrew,hanxue/homebrew,influxdata/homebrew,ralic/homebrew,ear/homebrew,bukzor/linuxbrew,michaKFromParis/homebrew-sparks,influxdb/homebrew,retrography/homebrew,chadcatlett/homebrew,Homebrew/homebrew,MoSal/homebrew,treyharris/homebrew,AlexejK/homebrew,cosmo0920/homebrew,benjaminfrank/homebrew,dutchcoders/homebrew,LinusU/homebrew,dongcarl/homebrew,yazuuchi/homebrew,dutchcoders/homebrew,filcab/homebrew,redpen-cc/homebrew,sferik/homebrew,elyscape/homebrew,kenips/homebrew,adamliter/homebrew,slyphon/homebrew,Asuranceturix/homebrew,retrography/homebrew,brunchboy/homebrew,TaylorMonacelli/homebrew,apjanke/homebrew,galaxy001/homebrew,gnubila-france/linuxbrew,apjanke/homebrew,dongcarl/homebrew,SteveClement/homebrew,thinker0/homebrew,dalanmiller/homebrew,jarrettmeyer/homebrew,menivaitsi/homebrew,keith/homebrew,polishgeeks/homebrew,dunn/homebrew,skatsuta/homebrew,Angeldude/linuxbrew,yazuuchi/homebrew,saketkc/linuxbrew,gicmo/homebrew,haihappen/homebrew,totalvoidness/homebrew,AlexejK/homebrew,osimola/homebrew,tutumcloud/homebrew,galaxy001/homebrew,ryanfb/homebrew,dericed/homebrew,benjaminfrank/homebrew,theeternalsw0rd/homebrew,hakamadare/homebrew,apjanke/homebrew,youtux/homebrew,josa42/homebrew,skatsuta/homebrew,ebouaziz/linuxbrew,SteveClement/homebrew,sferik/homebrew,adamliter/homebrew,base10/homebrew,eighthave/homebrew,hongkongkiwi/homebrew,drbenmorgan/linuxbrew,royhodgman/homebrew,ilovezfs/homebrew,pcottle/homebrew,elgertam/homebrew,hanxue/homebrew,LinusU/homebrew,scorphus/homebrew,liamstask/homebrew,quantumsteve/homebrew,bukzor/linuxbrew,apjanke/homebrew,totalvoidness/homebrew,ear/homebrew,liamstask/homebrew,ablyler/homebrew,OJFord/homebrew,ilovezfs/homebrew,ralic/homebrew,bukzor/linuxbrew,adamliter/homebrew,Asuranceturix/homebrew,scorphus/homebrew,hakamadare/homebrew,liamstask/homebrew,filcab/homebrew,Homebrew/linuxbrew,polishgeeks/homebrew,marcwebbie/homebrew,afh/homebrew,Red54/homebrew,redpen-cc/homebrew,afh/homebrew,scpeters/homebrew,marcwebbie/homebrew,reelsense/homebrew,haihappen/homebrew,brunchboy/homebrew,bigbes/homebrew,iostat/homebrew2,royhodgman/homebrew,DoomHammer/linuxbrew,skinny-framework/homebrew,AlexejK/homebrew,MartinDelille/homebrew,cprecioso/homebrew,Asuranceturix/homebrew,jamer/homebrew,sjackman/linuxbrew,drbenmorgan/linuxbrew,muellermartin/homebrew,saketkc/linuxbrew,scpeters/homebrew,thinker0/homebrew,bigbes/homebrew,sjackman/linuxbrew,michaKFromParis/homebrew-sparks,sometimesfood/homebrew,yumitsu/homebrew,drewwells/homebrew,Homebrew/linuxbrew,optikfluffel/homebrew,booi/homebrew,recruit-tech/homebrew,deorth/homebrew,dongcarl/homebrew,menivaitsi/homebrew,jarrettmeyer/homebrew,cprecioso/homebrew,reelsense/linuxbrew,decors/homebrew