-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.cs
More file actions
22 lines (20 loc) · 1.07 KB
/
Copy pathOptions.cs
File metadata and controls
22 lines (20 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#nullable enable
using CommandLine;
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable ClassNeverInstantiated.Global
#pragma warning disable 8618
namespace WinUtils
{
[Verb("wallpaper", true, HelpText = "Set the desktop wallpaper")]
public class OptionsWallpaper
{
[Option('c', "color", SetName = "color", Required = false, HelpText = "set the desktop background to a solid color")]
public string Color { get; set; }
[Option('p', "picture", SetName = "picture", Required = false, HelpText = "the path to the picture to use as a background (either a color name or an hexadecimal value)")]
public string Picture { get; set; }
[Option('s', "slideshow", SetName = "slideshow", Required = false, HelpText = "the path to the folder to use for the slideshow")]
public string SlideShow { get; set; }
[Option( "period", SetName = "slideshow", Required = false, Default = 600.0, HelpText = "the interval of times before displaying the next image")]
public double PeriodSeconds { get; set; }
}
}