-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.cs
More file actions
25 lines (22 loc) · 932 Bytes
/
Options.cs
File metadata and controls
25 lines (22 loc) · 932 Bytes
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
using System;
using CommandLine;
using CommandLine.Text;
class Options
{
[Option('f', "from", Required = false, HelpText = "From date, defaults to beginning of FY (the previous July 1)")]
public DateTime? FromDate { get; set; }
[Option('t', "to", Required = false, HelpText = "To date, defaults to today")]
public DateTime? ToDate { get; set; }
[Value(0, MetaName = "dataset", Required = true, HelpText = "Which dataset to update (not case sensitive)")]
public DatasetId DatasetId { get; set; }
[Usage]
public static IEnumerable<Example> Examples {get;} = new List<Example> {
new Example("Update Instruction & Outreach dataset", new Options{ DatasetId = DatasetId.InstructionOutreach }),
new Example("Update Hillman Head Counts dataset", new Options { DatasetId = DatasetId.HillHeadCounts })
};
}
enum DatasetId
{
InstructionOutreach = 29168,
HillHeadCounts = 31377,
}