Move argument parser code to a function
Move argument parser code to a function

FX31337/FX-BT-Scripts,EA31337/FX-BT-Scripts,EA31337/FX-BT-Scripts,EA31337/FX-BT-Scripts,FX31337/FX-BT-Scripts,FX31337/FX-BT-Scripts