0.0.2
This commit is contained in:
		
							parent
							
								
									f1d1bce20b
								
							
						
					
					
						commit
						dad3d356c6
					
				
					 2 changed files with 13 additions and 5 deletions
				
			
		
							
								
								
									
										16
									
								
								source/app.d
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								source/app.d
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2,7 +2,9 @@ import snapd;
 | 
			
		|||
import commandr;
 | 
			
		||||
import std.file;
 | 
			
		||||
 | 
			
		||||
import core.stdc.stdlib : EXIT_SUCCESS;
 | 
			
		||||
import std.stdio : writeln;
 | 
			
		||||
 | 
			
		||||
import core.stdc.stdlib : EXIT_SUCCESS, EXIT_FAILURE;
 | 
			
		||||
 | 
			
		||||
private string programName = "snapd";
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -18,10 +20,16 @@ int main(string[] args)
 | 
			
		|||
		)
 | 
			
		||||
		.parse(args);
 | 
			
		||||
 | 
			
		||||
	string configFile = "snapd.json";
 | 
			
		||||
	configFile = argumets.option("config", configFile);
 | 
			
		||||
	string configFile = argumets.option("config", "snapd.json");
 | 
			
		||||
 | 
			
		||||
	auto sc = new SnapdConfig(configFile);
 | 
			
		||||
	SnapdConfig config;
 | 
			
		||||
 | 
			
		||||
	try {
 | 
			
		||||
		config = new SnapdConfig(configFile);
 | 
			
		||||
	} catch (SnapdConfigException e) {
 | 
			
		||||
		e.print();
 | 
			
		||||
		return EXIT_FAILURE;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return EXIT_SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
module snapd.version_;
 | 
			
		||||
 | 
			
		||||
enum snapdVersion = "0.0.1";
 | 
			
		||||
enum snapdVersion = "0.0.2";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue