Skip to content
This repository was archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Fix argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
yck1509 committed Jan 7, 2015
1 parent 2b1148c commit d48b983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Confuser.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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:");
Expand Down

0 comments on commit d48b983

Please sign in to comment.