add command option to script method