-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.cs
More file actions
37 lines (32 loc) · 1.03 KB
/
Options.cs
File metadata and controls
37 lines (32 loc) · 1.03 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
using CommandLine;
using CommandLine.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SortMp3
{
class Options
{
public Options()
{
this.NumberFormat = "000";
}
[Option('p', "path", Required = true, HelpText = "Path to Mp3's")]
public string Mp3Path { get; set; }
[Option('o', "outputpath", Required = true, HelpText = "Outputpath")]
public string OutputPath { get; set; }
[Option('f', "format", Required = false, HelpText = "Numberformat e.g. 000 -> 001 - 999")]
public string NumberFormat { get; set; }
[HelpOption]
public string GetUsage()
{
HeadingInfo loHeadingInfo = new HeadingInfo("SortMp3");
HelpText loHelp = new HelpText(loHeadingInfo);
loHelp.Copyright = "Copyright © PinBack 2016";
loHelp.AddOptions(this);
return loHelp;
}
}
}