aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDemonKingSwarn <rockingswarn@gmail.com>2025-08-21 12:58:03 +0530
committerDemonKingSwarn <rockingswarn@gmail.com>2025-08-21 12:58:03 +0530
commite545f0603158d66d7ad59b9a30b7bd7e7b826e97 (patch)
treed9b297f715b08afdb654cbd1d574454dc3fc0f02
parente164b77a106f3c2d8d262898a75f3034b6718ff4 (diff)
downloadhypr-wellbeing-e545f0603158d66d7ad59b9a30b7bd7e7b826e97.zip
hypr-wellbeing-e545f0603158d66d7ad59b9a30b7bd7e7b826e97.tar.gz
chore: added version flag
-rw-r--r--Program.cs12
1 files changed, 9 insertions, 3 deletions
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)