From d48b983a938d3adcbbea5d288fe6ade28d9e423d Mon Sep 17 00:00:00 2001 From: yck1509 Date: Wed, 7 Jan 2015 22:30:59 +0800 Subject: [PATCH] Fix argument parsing --- Confuser.CLI/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Confuser.CLI/Program.cs b/Confuser.CLI/Program.cs index f8c29746d..7791167e5 100644 --- a/Confuser.CLI/Program.cs +++ b/Confuser.CLI/Program.cs @@ -47,9 +47,9 @@ static int Main(string[] args) { var proj = new ConfuserProject(); try { var xmlDoc = new XmlDocument(); - xmlDoc.Load(args[0]); + xmlDoc.Load(files[0]); proj.Load(xmlDoc); - proj.BaseDirectory = Path.Combine(Path.GetDirectoryName(args[0]), proj.BaseDirectory); + proj.BaseDirectory = Path.Combine(Path.GetDirectoryName(files[0]), proj.BaseDirectory); } catch (Exception ex) { WriteLineWithColor(ConsoleColor.Red, "Failed to load project:");