Adding command-line arg for opt method