ProcessArgument to input serverurl for a hybrid app in ios

Hello, I have a hybridapp which has has web elements wrapped up with native. I want to be able to pass processarguments to this such that I am able to pass the serverURL of the hybrid app also as an argument. example: say the hybrid app sample.ipa has serverurl so that when the iPhone launches sample.ipa, I am able to see inside it. Now I want to be able to pass argument through appium so that when appium next opens sample.ipa, I see . Can someone please help

Found the solution from github and its working perfectly fine. Posting it here for reference to anyone that reaches here