get command options if it's getting called from command line