diff --git a/AdventOfCode.Common/DayHelper.cs b/AdventOfCode.Common/DayHelper.cs
index 02b6066..5a9359e 100644
--- a/AdventOfCode.Common/DayHelper.cs
+++ b/AdventOfCode.Common/DayHelper.cs
@@ -63,4 +63,29 @@ public static class DayHelper
Console.WriteLine(ex.StackTrace);
}
}
+
+ public static void RunDay(string eventName)
+ {
+ for (int currentDay = 1; currentDay < 25; currentDay++)
+ {
+ RunDay(eventName, currentDay);
+ Console.WriteLine(string.Empty);
+ Console.WriteLine("-------------------------");
+ Console.WriteLine(string.Empty);
+ }
+ }
+
+ public static void RunDay(string eventName, string[] args)
+ {
+ if (args.Length > 0)
+ {
+ int currentDay = Convert.ToInt32(args[0]);
+ if (currentDay != 0)
+ {
+ RunDay(eventName, currentDay);
+ return;
+ }
+ }
+ RunDay(eventName);
+ }
}
\ No newline at end of file
diff --git a/AdventOfCode.sln.DotSettings b/AdventOfCode.sln.DotSettings
index 9bcab71..04c2508 100644
--- a/AdventOfCode.sln.DotSettings
+++ b/AdventOfCode.sln.DotSettings
@@ -4,6 +4,7 @@
VM
VX
VY
+ <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb_AaBb" />
<Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" />
True
True
diff --git a/AdventOfCode2017/Program.cs b/AdventOfCode2017/Program.cs
index 0d06537..850742e 100644
--- a/AdventOfCode2017/Program.cs
+++ b/AdventOfCode2017/Program.cs
@@ -1,3 +1,3 @@
global using AdventOfCode.Common;
-DayHelper.RunDay("AdventOfCode2017", 2);
\ No newline at end of file
+DayHelper.RunDay("AdventOfCode2017", args);
\ No newline at end of file
diff --git a/AdventOfCode2018/Program.cs b/AdventOfCode2018/Program.cs
index becddc8..f7c5dcb 100644
--- a/AdventOfCode2018/Program.cs
+++ b/AdventOfCode2018/Program.cs
@@ -1,3 +1,3 @@
global using AdventOfCode.Common;
-DayHelper.RunDay("AdventOfCode2018", 16);
\ No newline at end of file
+DayHelper.RunDay("AdventOfCode2018", args);
\ No newline at end of file
diff --git a/AdventOfCode2020/Program.cs b/AdventOfCode2020/Program.cs
index 6455077..534ccce 100644
--- a/AdventOfCode2020/Program.cs
+++ b/AdventOfCode2020/Program.cs
@@ -1,3 +1,3 @@
global using AdventOfCode.Common;
-DayHelper.RunDay("AdventOfCode2020", 2);
\ No newline at end of file
+DayHelper.RunDay("AdventOfCode2020", args);
\ No newline at end of file
diff --git a/AdventOfCode2023/Program.cs b/AdventOfCode2023/Program.cs
index 154f2a8..0334f93 100644
--- a/AdventOfCode2023/Program.cs
+++ b/AdventOfCode2023/Program.cs
@@ -1,3 +1,3 @@
global using AdventOfCode.Common;
-DayHelper.RunDay("AdventOfCode2023", 5);
\ No newline at end of file
+DayHelper.RunDay("AdventOfCode2023", args);
\ No newline at end of file