Modified CLI arg parsing to use Java URL methods