-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.cs
More file actions
58 lines (51 loc) · 2.25 KB
/
Options.cs
File metadata and controls
58 lines (51 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#region License
// <copyright file="Options.cs" company="Michael R. Schwab">
// Copyright 2022
// </copyright>
//
// License: https://github.com/Fyzel/FlickrRemovePhotosFromSet/blob/master/LICENSE
#endregion
using System.Collections.Generic;
using CommandLine;
using CommandLine.Text;
namespace FlickrRemovePhotosFromSet
{
class Options
{
[Option('k', "api-key", Required = true, HelpText = "Flickr API Key")]
public string ApiKey { get; set; }
[Option('a', "api-secret", Required = true, HelpText = "Flickr API Secret")]
public string ApiSecret { get; set; }
[Option('s', "source-set-id", Required = true, HelpText = "Source photoset ID")]
public string SourceSetId { get; set; }
[Option('t', "target-set-id", Required = true, HelpText = "Target photoset ID")]
public string TargetSetId { get; set; }
[Option('v', "verbose", Required = false, HelpText = "verbose")]
public bool Verbose { get; set; }
[Usage(ApplicationAlias = "FlickrRemovePhotosFromSet")]
public static IEnumerable<Example> Examples
{
get
{
yield return new Example("Verbose Usage",
new Options
{
ApiKey = "[api-key]",
ApiSecret = "[api-secret]",
SourceSetId = "72157698344344474",
TargetSetId = "72157650408948124",
Verbose = true
});
yield return new Example("Non-Verbose Usage",
new Options
{
ApiKey = "[api-key]",
ApiSecret = "[api-secret]",
SourceSetId = "72157698344344474",
TargetSetId = "72157650408948124",
Verbose = false
});
}
}
}
}