From e545f0603158d66d7ad59b9a30b7bd7e7b826e97 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Thu, 21 Aug 2025 12:58:03 +0530 Subject: chore: added version flag --- Program.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Program.cs') diff --git a/Program.cs b/Program.cs index 8e4afd1..de14dd3 100644 --- a/Program.cs +++ b/Program.cs @@ -5,19 +5,25 @@ using hyprwatch.Report.Weekly; class Program { - static void Main(string[] args) + static void Main(string[] args) { + string version = "0.0.7"; string homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); string hyprwatchDirectory = Path.Combine(homeDirectory, ".cache", "hyprwatch"); string dailyDataDirectory = Path.Combine(hyprwatchDirectory, "daily_data"); Directory.CreateDirectory(dailyDataDirectory); - if (args.Length == 0 || args[0] != "-d" && args[0] != "--show" && args[0] != "--weekly") + if (args.Length == 0 || args[0] != "-d" && args[0] != "--show" && args[0] != "--weekly" && args[0] != "-v") { - Console.WriteLine("Usage: -d || --show"); + Console.WriteLine("Usage: -d || -v || --show || --weekly"); return; } + if(args[0] == "-v") + { + Console.WriteLine($"hypr-wellbeing v{version}"); + } + if(args[0] == "-d") { while(true) -- cgit v1.1