aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Program.cs b/Program.cs
index d57fe2c..8e4afd1 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,6 +1,7 @@
using System.IO;
using System.Runtime.InteropServices;
using hyprwatch.Logger;
+using hyprwatch.Report.Weekly;
class Program
{
@@ -11,7 +12,7 @@ class Program
string dailyDataDirectory = Path.Combine(hyprwatchDirectory, "daily_data");
Directory.CreateDirectory(dailyDataDirectory);
- if (args.Length == 0 || args[0] != "-d" && args[0] != "--show")
+ if (args.Length == 0 || args[0] != "-d" && args[0] != "--show" && args[0] != "--weekly")
{
Console.WriteLine("Usage: -d || --show");
return;
@@ -75,6 +76,10 @@ class Program
}
}
+ if(args[0] == "--weekly")
+ {
+ WeeklyReport.DisplayWeeklyReport();
+ }
}
}