diff --git a/esv.d b/esv.d index 25683e2..186902f 100644 --- a/esv.d +++ b/esv.d @@ -58,6 +58,8 @@ main(string[] args) sharedInit(args); + cFlag = null; + /* Parse command-line options */ try { import std.getopt : config; @@ -106,7 +108,7 @@ config: configPath = environment.get(cf.configEnv, cf.configPath) .expandTilde(); try { - if (cFlag != "") { /* if -c was given */ + if (cFlag) { configPath = cFlag.expandTilde(); } else { if (!configPath.exists()) {