Skip to content

Commit

Permalink
extend period to 1800
Browse files Browse the repository at this point in the history
  • Loading branch information
exzhawk committed Jun 26, 2024
1 parent 5aeb8e0 commit c3f6da7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MouseJiggler/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 c3f6da7

Please sign in to comment.