コード例 #1
0
 public static object GetOptionObject(this ICommandLine commandLine, string optionName)
 {
     try {
         return(commandLine.GetParsedOptionValue(optionName));
     } catch (ParseException pe) {
         Console.Error.WriteLine("Exception found converting " + optionName + " to desired type: " + pe.Message);
         return(null);
     }
 }