Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
exzhawk authored Jun 26, 2024
1 parent bdfaed4 commit f2f4127
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MouseJiggler/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private static RootCommand GetCommandLineParser ()
optZen.Argument.SetDefaultValue (value: Settings.Default.ZenJiggle);
rootCommand.AddOption (option: optZen);

// -s 60 --seconds=60
// -s 1800 --seconds=1800
Option optPeriod = new (aliases: new[] {"--seconds", "-s",},
description: "Set number of seconds for the jiggle interval.");

Expand All @@ -120,8 +120,8 @@ private static RootCommand GetCommandLineParser ()
? "Period cannot be shorter than 1 second."
: null);

optPeriod.AddValidator (validate: p => p.GetValueOrDefault<int> () > 60
? "Period cannot be longer than 60 seconds."
optPeriod.AddValidator (validate: p => p.GetValueOrDefault<int> () > 1800
? "Period cannot be longer than 1800 seconds."
: null);

optPeriod.Argument.SetDefaultValue (value: Settings.Default.JigglePeriod);
Expand Down

0 comments on commit f2f4127

Please sign in to comment.