private static Config getConfig(String[] args) {
		Config config = new Config();
		
		if(args!=null){
			for (int i = 0; i < args.length; i++) {
				if(args[i].equals("-date")){
					i++;
					Helper.isTrue(args.length>i && Helper.isNotBlank(args[i]), "argument after -date have to be one of "+Arrays.asList(DateSetting.values()));
					DateSetting ds = DateSetting.valueOf(args[i]);
					config.setDateSetting(ds);
					continue;
				}
				
				if(args[i].equals("-dataset")){
					i++;
					Helper.isTrue(args.length>i && Helper.isNotBlank(args[i]), "argument after -dataset have to be one of "+Arrays.asList(Dataset.values()));
					Dataset dataset = Dataset.valueOf(args[i]);
					config.setDataset(dataset);
					continue;
				}
				
				if(args[i].equals("-o")){
					i++;
					Helper.isTrue(args.length>i && Helper.isNotBlank(args[i]), "argument after -o not specified ");
					config.setCsvFileName(args[i]);
					continue;
				}
				
//				if(args[i].equals("-customRegex")){
//					i++;
//					Helper.isTrue(args.length>i && Helper.isNotBlank(args[i]), "argument after -customRegex not specified ");
//					config.setCustomRegex(args[i]);
//					continue;
//				}
				
			}
			
		}
		return config;
	}