Fixed argument mismatch, disabled requirement for links json key

This commit is contained in:
Tristan B. Kildaire 2020-10-02 17:08:35 +02:00
parent ef90f1ba13
commit 1071d11345
2 changed files with 3 additions and 3 deletions

View File

@ -11,13 +11,13 @@ void main(string[] args)
string configFilename;
/* If there are no arguments */
if(!args.length)
if(args.length == 1)
{
/* Use the default file */
configFilename = "config.json";
}
/* If there is one argument */
else if(args.length == 1)
else if(args.length == 2)
{
/* use the specified one */
configFilename = args[0];

View File

@ -46,7 +46,7 @@ public final class DConfig
config.generalConfig = DGeneralConfig.getConfig(generalBlock);
/* Get the `links` block */
JSONValue linksBlock = json["links"];
//JSONValue linksBlock = json["links"];
//config.linksConfig = DLinkConfig.getConfig(linksBlock);
}
catch(JSONException e)