aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Program.cs')
-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)