-
Notifications
You must be signed in to change notification settings - Fork 1
/
ValidateOptions.cs
33 lines (25 loc) · 1 KB
/
ValidateOptions.cs
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
using CommandLine;
namespace Metacrack
{
[Verb("validate", HelpText = "Parses a file and validates each line given the hash provided.")]
public class ValidateOptions
{
[Value(0, Required = true, MetaName = "InputPath", HelpText = "The path to the file(s) containing the input values.")]
public string InputPath { get; set; }
[Option("hash", Default = -1)]
public int Hash { get; set; }
[Option("iterations")]
public int Iterations { get; set; }
[Option("column", Default = 1)]
public int Column { get; set; }
[Option("email")]
public bool ValidateEmail { get; set; }
[Option("email-only")]
public bool ValidateEmailOnly { get; set; }
[Option("no-email")]
public bool NoEmail { get; set; }
//Ignore hash mode and use a regex instead
[Option("regex", HelpText="Ignore the value in mode and use the regex supplied instead")]
public string Regex { get; set; }
}
}