We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cefbc60 commit 15d7ac9Copy full SHA for 15d7ac9
src/Server/Program.cs
@@ -1,7 +1,6 @@
1
-int port = 6379;
+var arguments = new ArgParser(args);
2
3
-if (args.Length > 0) port = int.Parse(args[0]);
+var database = Database.Link(arguments.Path, arguments.SaveInterval);
4
+var server = new Server(arguments.Port, database);
5
-var database = new Database();
6
-var server = new Server(port, database);
7
server.Run();
0 commit comments