Skip to content

Commit

Permalink
Changed task selection
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomCrafty committed Jan 25, 2017
1 parent d69725c commit 18faf8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/yukatool/Task.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public static Task Create(string[] args) {
}

// Task name
else if(task == null) {
task = registeredTasks.ContainsKey(arg) ? registeredTasks[arg] : defaultTask;
else if(task == null && registeredTasks.ContainsKey(arg)) {
task = registeredTasks[arg];
}

// Task parameters
Expand All @@ -66,7 +66,7 @@ public static Task Create(string[] args) {
}

if(task == null) {
task = registeredTasks[""];
task = defaultTask;
}

FlagCollection flags = new FlagCollection();
Expand Down

0 comments on commit 18faf8c

Please sign in to comment.