public static CommandArgs Parse(params string[] args) { try { if (args.Length > 0) { var excelPath = args[0]; var resourceDicPath = args[1]; var obj = new AppArgs(excelPath, resourceDicPath); return(obj); } else { return(null); } } catch (Exception) { return(null); } }
public static CommandArgs Parse(string excelPath, string resourceDicPath) { var obj = new AppArgs(excelPath, resourceDicPath); return(obj); }