dist: openocd.sh: Refactor argument handling, add new hooks for extra commands
dist: openocd.sh: Refactor argument handling, add new hooks for extra commands

OTAkeys/RIOT,kushalsingh007/RIOT,l3nko/RIOT,attdona/RIOT,abp719/RIOT,binarylemon/RIOT,Ell-i/RIOT,lebrush/RIOT,bartfaizoltan/RIOT,patkan/RIOT,kbumsik/RIOT,dhruvvyas90/RIOT,patkan/RIOT,rfswarm/RIOT,khhhh/RIOT,marcosalm/RIOT,dhruvvyas90/RIOT,shady33/RIOT,centurysys/RIOT,kushalsingh007/RIOT,biboc/RIOT,plushvoxel/RIOT,khhhh/RIOT,automote/RIOT,asanka-code/RIOT,thomaseichinger/RIOT,biboc/RIOT,kb2ma/RIOT,watr-li/RIOT,asanka-code/RIOT,msolters/RIOT,ximus/RIOT,RIOT-OS/RIOT,koenning/RIOT,abp719/RIOT,Yonezawa-T2/RIOT,Ell-i/RIOT,neumodisch/RIOT,ximus/RIOT,tfar/RIOT,gautric/RIOT,luciotorre/RIOT,gbarnett/RIOT,rousselk/RIOT,rfswarm/RIOT,patkan/RIOT,malosek/RIOT,kb2ma/RIOT,dhruvvyas90/RIOT,kaleb-himes/RIOT,sgso/RIOT,katezilla/RIOT,LudwigKnuepfer/RIOT,PSHIVANI/Riot-Code,altairpearl/RIOT,toonst/RIOT,abkam07/RIOT,MarkXYang/RIOT,DipSwitch/RIOT,avmelnikoff/RIOT,josephnoir/RIOT,alignan/RIOT,jremmert-phytec-iot/RIOT,rousselk/RIOT,Hyungsin/RIOT-OS,wentaoshang/RIOT,kbumsik/RIOT,Hyungsin/RIOT-OS,brettswann/RIOT,kYc0o/RIOT,attdona/RIOT,OlegHahm/RIOT,patkan/RIOT,luciotorre/RIOT,d00616/RIOT,Josar/RIOT,rakendrathapa/RIOT,kushalsingh007/RIOT,backenklee/RIOT,gautric/RIOT,ntrtrung/RIOT,msolters/RIOT,biboc/RIOT,syin2/RIOT,MohmadAyman/RIOT,backenklee/RIOT,wentaoshang/RIOT,ntrtrung/RIOT,Darredevil/RIOT,neumodisch/RIOT,stevenj/RIOT,jremmert-phytec-iot/RIOT,miri64/RIOT,kaleb-himes/RIOT,neumodisch/RIOT,LudwigOrtmann/RIOT,TobiasFredersdorf/RIOT,rajma996/RIOT,arvindpdmn/RIOT,adjih/RIOT,kYc0o/RIOT,sumanpanchal/RIOT,attdona/RIOT,OTAkeys/RIOT,cladmi/RIOT,wentaoshang/RIOT,adrianghc/RIOT,gbarnett/RIOT,automote/RIOT,rakendrathapa/RIOT,arvindpdmn/RIOT,ximus/RIOT,rfuentess/RIOT,A-Paul/RIOT,LudwigKnuepfer/RIOT,chris-wood/RIOT,immesys/RiSyn,RBartz/RIOT,changbiao/RIOT,toonst/RIOT,LudwigKnuepfer/RIOT,adjih/RIOT,RubikonAlpha/RIOT,dhruvvyas90/RIOT,shady33/RIOT,syin2/RIOT,herrfz/RIOT,luciotorre/RIOT,malosek/RIOT,FrancescoErmini/RIOT,Yonezawa-T2/RIOT,Osblouf/RIOT,kaspar030/RIOT,josephnoir/RIOT,phiros/RIOT,authmillenon/RIOT,haoyangyu/RIOT,tdautc19841202/RIOT,rousselk/RIOT,automote/RIOT,tfar/RIOT,adrianghc/RIOT,watr-li/RIOT,Osblouf/RIOT,josephnoir/RIOT,JensErdmann/RIOT,TobiasFredersdorf/RIOT,automote/RIOT,binarylemon/RIOT,A-Paul/RIOT,chris-wood/RIOT,EmuxEvans/RIOT,neiljay/RIOT,thiagohd/RIOT,gbarnett/RIOT,kYc0o/RIOT,LudwigOrtmann/RIOT,malosek/RIOT,lebrush/RIOT,jbeyerstedt/RIOT-OTA-update,d00616/RIOT,RubikonAlpha/RIOT,jfischer-phytec-iot/RIOT,Osblouf/RIOT,marcosalm/RIOT,jremmert-phytec-iot/RIOT,kerneltask/RIOT,JensErdmann/RIOT,LudwigOrtmann/RIOT,immesys/RiSyn,sumanpanchal/RIOT,Darredevil/RIOT,adrianghc/RIOT,ThanhVic/RIOT,lazytech-org/RIOT,rfswarm/RIOT,ntrtrung/RIOT,abkam07/RIOT,robixnai/RIOT,ntrtrung/RIOT,haoyangyu/RIOT,dkm/RIOT,yogo1212/RIOT,attdona/RIOT,RubikonAlpha/RIOT,koenning/RIOT,luciotorre/RIOT,yogo1212/RIOT,Osblouf/RIOT,haoyangyu/RIOT,jremmert-phytec-iot/RIOT,basilfx/RIOT,mtausig/RIOT,adjih/RIOT,daniel-k/RIOT,zhuoshuguo/RIOT,rakendrathapa/RIOT,biboc/RIOT,arvindpdmn/RIOT,RBartz/RIOT,phiros/RIOT,MarkXYang/RIOT,d00616/RIOT,centurysys/RIOT,l3nko/RIOT,dkm/RIOT,lazytech-org/RIOT,daniel-k/RIOT,katezilla/RIOT,d00616/RIOT,kerneltask/RIOT,sumanpanchal/RIOT,MohmadAyman/RIOT,wentaoshang/RIOT,abkam07/RIOT,abp719/RIOT,ant9000/RIOT,RBartz/RIOT,Lexandro92/RIOT-CoAP,EmuxEvans/RIOT,latsku/RIOT,malosek/RIOT,RubikonAlpha/RIOT,sgso/RIOT,jremmert-phytec-iot/RIOT,thomaseichinger/RIOT,Osblouf/RIOT,ks156/RIOT,ximus/RIOT,MohmadAyman/RIOT,thiagohd/RIOT,robixnai/RIOT,herrfz/RIOT,kaleb-himes/RIOT,brettswann/RIOT,TobiasFredersdorf/RIOT,mtausig/RIOT,phiros/RIOT,stevenj/RIOT,herrfz/RIOT,RBartz/RIOT,bartfaizoltan/RIOT,Ell-i/RIOT,jbeyerstedt/RIOT-OTA-update,arvindpdmn/RIOT,syin2/RIOT,Josar/RIOT,alex1818/RIOT,rfuentess/RIOT,tfar/RIOT,LudwigOrtmann/RIOT,msolters/RIOT,malosek/RIOT,toonst/RIOT,daniel-k/RIOT,FrancescoErmini/RIOT,roberthartung/RIOT,DipSwitch/RIOT,MonsterCode8000/RIOT,benoit-canet/RIOT,daniel-k/RIOT,FrancescoErmini/RIOT,centurysys/RIOT,abkam07/RIOT,kYc0o/RIOT,sgso/RIOT,aeneby/RIOT,khhhh/RIOT,watr-li/RIOT,avmelnikoff/RIOT,beurdouche/RIOT,DipSwitch/RIOT,RubikonAlpha/RIOT,asanka-code/RIOT,yogo1212/RIOT,stevenj/RIOT,aeneby/RIOT,Lexandro92/RIOT-CoAP,zhuoshuguo/RIOT,authmillenon/RIOT,zhuoshuguo/RIOT,neumodisch/RIOT,tfar/RIOT,Darredevil/RIOT,d00616/RIOT,Josar/RIOT,PSHIVANI/Riot-Code,Lexandro92/RIOT-CoAP,benoit-canet/RIOT,BytesGalore/RIOT,adjih/RIOT,Yonezawa-T2/RIOT,hamilton-mote/RIOT-OS,miri64/RIOT,kerneltask/RIOT,lazytech-org/RIOT,basilfx/RIOT,beurdouche/RIOT,chris-wood/RIOT,dailab/RIOT,ant9000/RIOT,Lexandro92/RIOT-CoAP,EmuxEvans/RIOT,hamilton-mote/RIOT-OS,mfrey/RIOT,watr-li/RIOT,cladmi/RIOT,OlegHahm/RIOT,wentaoshang/RIOT,MohmadAyman/RIOT,EmuxEvans/RIOT,luciotorre/RIOT,l3nko/RIOT,katezilla/RIOT,koenning/RIOT,OlegHahm/RIOT,msolters/RIOT,koenning/RIOT,mfrey/RIOT,roberthartung/RIOT,ntrtrung/RIOT,watr-li/RIOT,haoyangyu/RIOT,bartfaizoltan/RIOT,ks156/RIOT,authmillenon/RIOT,gautric/RIOT,sgso/RIOT,dailab/RIOT,thiagohd/RIOT,aeneby/RIOT,DipSwitch/RIOT,rajma996/RIOT,MonsterCode8000/RIOT,stevenj/RIOT,robixnai/RIOT,TobiasFredersdorf/RIOT,binarylemon/RIOT,tdautc19841202/RIOT,kerneltask/RIOT,Yonezawa-T2/RIOT,abkam07/RIOT,chris-wood/RIOT,jasonatran/RIOT,josephnoir/RIOT,smlng/RIOT,RIOT-OS/RIOT,cladmi/RIOT,attdona/RIOT,centurysys/RIOT,binarylemon/RIOT,dhruvvyas90/RIOT,sgso/RIOT,dailab/RIOT,JensErdmann/RIOT,immesys/RiSyn,altairpearl/RIOT,MonsterCode8000/RIOT,kaspar030/RIOT,gautric/RIOT,PSHIVANI/Riot-Code,khhhh/RIOT,shady33/RIOT,plushvoxel/RIOT,arvindpdmn/RIOT,beurdouche/RIOT,mziegert/RIOT,arvindpdmn/RIOT,A-Paul/RIOT,phiros/RIOT,rakendrathapa/RIOT,jasonatran/RIOT,kb2ma/RIOT,phiros/RIOT,mfrey/RIOT,kerneltask/RIOT,kaspar030/RIOT,MonsterCode8000/RIOT,abkam07/RIOT,Darredevil/RIOT,yogo1212/RIOT,Ell-i/RIOT,x3ro/RIOT,robixnai/RIOT,dkm/RIOT,marcosalm/RIOT,rousselk/RIOT,robixnai/RIOT,immesys/RiSyn,rajma996/RIOT,neiljay/RIOT,mtausig/RIOT,jfischer-phytec-iot/RIOT,neiljay/RIOT,kbumsik/RIOT,rakendrathapa/RIOT,rfswarm/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,LudwigOrtmann/RIOT,gebart/RIOT,kb2ma/RIOT,abp719/RIOT,jferreir/RIOT,kaspar030/RIOT,automote/RIOT,openkosmosorg/RIOT,josephnoir/RIOT,gebart/RIOT,alignan/RIOT,gbarnett/RIOT,BytesGalore/RIOT,RIOT-OS/RIOT,d00616/RIOT,RubikonAlpha/RIOT,daniel-k/RIOT,MonsterCode8000/RIOT,lazytech-org/RIOT,ant9000/RIOT,neumodisch/RIOT,ntrtrung/RIOT,neiljay/RIOT,latsku/RIOT,openkosmosorg/RIOT,roberthartung/RIOT,shady33/RIOT,rfuentess/RIOT,BytesGalore/RIOT,jferreir/RIOT,ximus/RIOT,stevenj/RIOT,brettswann/RIOT,rajma996/RIOT,mfrey/RIOT,MohmadAyman/RIOT,authmillenon/RIOT,alex1818/RIOT,Darredevil/RIOT,zhuoshuguo/RIOT,aeneby/RIOT,yogo1212/RIOT,neumodisch/RIOT,RBartz/RIOT,thomaseichinger/RIOT,x3ro/RIOT,lazytech-org/RIOT,LudwigOrtmann/RIOT,jasonatran/RIOT,smlng/RIOT,jfischer-phytec-iot/RIOT,mziegert/RIOT,Darredevil/RIOT,Hyungsin/RIOT-OS,roberthartung/RIOT,openkosmosorg/RIOT,gautric/RIOT,jasonatran/RIOT,lebrush/RIOT,bartfaizoltan/RIOT,asanka-code/RIOT,shady33/RIOT,avmelnikoff/RIOT,khhhh/RIOT,kushalsingh007/RIOT,chris-wood/RIOT,ks156/RIOT,herrfz/RIOT,OTAkeys/RIOT,altairpearl/RIOT,ant9000/RIOT,basilfx/RIOT,jferreir/RIOT,RIOT-OS/RIOT,cladmi/RIOT,l3nko/RIOT,jfischer-phytec-iot/RIOT,ks156/RIOT,Josar/RIOT,syin2/RIOT,Lexandro92/RIOT-CoAP,dhruvvyas90/RIOT,patkan/RIOT,koenning/RIOT,attdona/RIOT,patkan/RIOT,PSHIVANI/Riot-Code,changbiao/RIOT,asanka-code/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,miri64/RIOT,shady33/RIOT,beurdouche/RIOT,mziegert/RIOT,kbumsik/RIOT,l3nko/RIOT,dkm/RIOT,jasonatran/RIOT,gebart/RIOT,altairpearl/RIOT,alex1818/RIOT,Yonezawa-T2/RIOT,hamilton-mote/RIOT-OS,A-Paul/RIOT,kushalsingh007/RIOT,zhuoshuguo/RIOT,benoit-canet/RIOT,dkm/RIOT,altairpearl/RIOT,MarkXYang/RIOT,EmuxEvans/RIOT,BytesGalore/RIOT,plushvoxel/RIOT,adjih/RIOT,binarylemon/RIOT,centurysys/RIOT,neiljay/RIOT,MarkXYang/RIOT,mziegert/RIOT,altairpearl/RIOT,jbeyerstedt/RIOT-OTA-update,FrancescoErmini/RIOT,basilfx/RIOT,MarkXYang/RIOT,avmelnikoff/RIOT,kb2ma/RIOT,backenklee/RIOT,RIOT-OS/RIOT,koenning/RIOT,ThanhVic/RIOT,openkosmosorg/RIOT,brettswann/RIOT,latsku/RIOT,toonst/RIOT,sumanpanchal/RIOT,brettswann/RIOT,biboc/RIOT,gebart/RIOT,kushalsingh007/RIOT,yogo1212/RIOT,gbarnett/RIOT,automote/RIOT,kbumsik/RIOT,mziegert/RIOT,openkosmosorg/RIOT,changbiao/RIOT,DipSwitch/RIOT,adrianghc/RIOT,daniel-k/RIOT,robixnai/RIOT,Lexandro92/RIOT-CoAP,luciotorre/RIOT,alex1818/RIOT,thomaseichinger/RIOT,kaleb-himes/RIOT,plushvoxel/RIOT,JensErdmann/RIOT,BytesGalore/RIOT,mziegert/RIOT,OTAkeys/RIOT,Osblouf/RIOT,alex1818/RIOT,ant9000/RIOT,PSHIVANI/Riot-Code,benoit-canet/RIOT,authmillenon/RIOT,haoyangyu/RIOT,dailab/RIOT,mfrey/RIOT,rfswarm/RIOT,alex1818/RIOT,watr-li/RIOT,jferreir/RIOT,rajma996/RIOT,aeneby/RIOT,kaleb-himes/RIOT,PSHIVANI/Riot-Code,thiagohd/RIOT,mtausig/RIOT,tdautc19841202/RIOT,plushvoxel/RIOT,herrfz/RIOT,haoyangyu/RIOT,lebrush/RIOT,jremmert-phytec-iot/RIOT,JensErdmann/RIOT,sumanpanchal/RIOT,thiagohd/RIOT,roberthartung/RIOT,adrianghc/RIOT,smlng/RIOT,tdautc19841202/RIOT,jfischer-phytec-iot/RIOT,MohmadAyman/RIOT,LudwigKnuepfer/RIOT,kaspar030/RIOT,rousselk/RIOT,FrancescoErmini/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,dailab/RIOT,Josar/RIOT,RBartz/RIOT,OTAkeys/RIOT,immesys/RiSyn,Ell-i/RIOT,beurdouche/RIOT,lebrush/RIOT,khhhh/RIOT,FrancescoErmini/RIOT,x3ro/RIOT,stevenj/RIOT,jbeyerstedt/RIOT-OTA-update,rfswarm/RIOT,wentaoshang/RIOT,thomaseichinger/RIOT,msolters/RIOT,changbiao/RIOT,phiros/RIOT,jferreir/RIOT,basilfx/RIOT,A-Paul/RIOT,katezilla/RIOT,jferreir/RIOT,OlegHahm/RIOT,avmelnikoff/RIOT,ThanhVic/RIOT,cladmi/RIOT,miri64/RIOT,rfuentess/RIOT,alignan/RIOT,thiagohd/RIOT,x3ro/RIOT,TobiasFredersdorf/RIOT,rakendrathapa/RIOT,alignan/RIOT,openkosmosorg/RIOT,Yonezawa-T2/RIOT,LudwigKnuepfer/RIOT,ThanhVic/RIOT,malosek/RIOT,MarkXYang/RIOT,JensErdmann/RIOT,marcosalm/RIOT,smlng/RIOT,herrfz/RIOT,brettswann/RIOT,asanka-code/RIOT,hamilton-mote/RIOT-OS,toonst/RIOT,marcosalm/RIOT,centurysys/RIOT,bartfaizoltan/RIOT,benoit-canet/RIOT,ThanhVic/RIOT,jbeyerstedt/RIOT-OTA-update,syin2/RIOT,abp719/RIOT,ximus/RIOT,backenklee/RIOT,smlng/RIOT,gebart/RIOT,immesys/RiSyn,sgso/RIOT,rajma996/RIOT,kYc0o/RIOT,latsku/RIOT,zhuoshuguo/RIOT,rousselk/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,chris-wood/RIOT,Hyungsin/RIOT-OS,tdautc19841202/RIOT,binarylemon/RIOT,tfar/RIOT,marcosalm/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,gbarnett/RIOT,katezilla/RIOT,abp719/RIOT,ThanhVic/RIOT,Hyungsin/RIOT-OS,ks156/RIOT,benoit-canet/RIOT,authmillenon/RIOT,x3ro/RIOT,alignan/RIOT,DipSwitch/RIOT,lebrush/RIOT,mtausig/RIOT,MonsterCode8000/RIOT,sumanpanchal/RIOT,l3nko/RIOT,backenklee/RIOT,tdautc19841202/RIOT,EmuxEvans/RIOT,changbiao/RIOT,latsku/RIOT,changbiao/RIOT,latsku/RIOT,OlegHahm/RIOT,hamilton-mote/RIOT-OS,bartfaizoltan/RIOT,msolters/RIOT,miri64/RIOT,rfuentess/RIOT