diff options
| author | DemonKingSwarn <rockingswarn@gmail.com> | 2025-08-21 12:58:03 +0530 |
|---|---|---|
| committer | DemonKingSwarn <rockingswarn@gmail.com> | 2025-08-21 12:58:03 +0530 |
| commit | e545f0603158d66d7ad59b9a30b7bd7e7b826e97 (patch) | |
| tree | d9b297f715b08afdb654cbd1d574454dc3fc0f02 /Program.cs | |
| parent | e164b77a106f3c2d8d262898a75f3034b6718ff4 (diff) | |
| download | hypr-wellbeing-e545f0603158d66d7ad59b9a30b7bd7e7b826e97.zip hypr-wellbeing-e545f0603158d66d7ad59b9a30b7bd7e7b826e97.tar.gz | |
chore: added version flag
Diffstat (limited to 'Program.cs')
| -rw-r--r-- | Program.cs | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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) |
