|
2 | 2 | using LineCount; |
3 | 3 | using LineCount.Logging; |
4 | 4 |
|
5 | | -var rootCommand = new RootCommand("Line Count"); |
| 5 | +var rootCommand = new RootCommand("linecount"); |
6 | 6 |
|
7 | | -var filterOption = new Option<string>(["-f", "--filter"], "a glob-pattern for files to include."); |
8 | | -var lineFilterOption = new Option<string>(["-l", "--line-filter"], "a RegEx for the lines to count."); |
9 | | -var exceptFilterOption = new Option<string>(["-x", "--exclude-filter"], "a glob-pattern for files not to include."); |
10 | | -var exceptLineFilterOption = new Option<string>(["-w", "--exlude-line-filter"], "a RegEx for the lines not to count."); |
11 | | -var listFilesOption = new Option<bool>("--list", "whether to list the files as they are being processed."); |
12 | | -var excludeDirectoriesOption = new Option<string[]>("--exclude-directories", "a list of directories to exclude.") |
| 7 | +var filterOption = new Option<string>(["-f", "--filter"], "A glob-pattern for files to include."); |
| 8 | +var lineFilterOption = new Option<string>(["-l", "--line-filter"], "A RegEx for the lines to count."); |
| 9 | +var exceptFilterOption = new Option<string>(["-x", "--exclude-filter"], "A glob-pattern for files not to include."); |
| 10 | +var exceptLineFilterOption = new Option<string>(["-w", "--exlude-line-filter"], "A RegEx for the lines not to count."); |
| 11 | +var listFilesOption = new Option<bool>("--list", "Whether to list the files as they are being processed."); |
| 12 | +var excludeDirectoriesOption = new Option<string[]>("--exclude-directories", "A list of directories to exclude.") |
13 | 13 | { |
14 | 14 | Arity = ArgumentArity.OneOrMore, |
15 | 15 | AllowMultipleArgumentsPerToken = true |
16 | 16 | }; |
17 | | -var excludeFilesOption = new Option<string[]>("--exclude-files", "a list of files to exclude.") |
| 17 | +var excludeFilesOption = new Option<string[]>("--exclude-files", "A list of files to exclude.") |
18 | 18 | { |
19 | 19 | Arity = ArgumentArity.OneOrMore, |
20 | 20 | AllowMultipleArgumentsPerToken = true |
21 | 21 | }; |
22 | 22 |
|
23 | | -var pathArgument = new Argument<string>("path", "The path of the file or the directory that contains the files to calculate the count of. Use '.' to refer to the current directory."); |
| 23 | +var pathArgument = new Argument<string>("path", "The path to the file or the directory that contains the files to calculate the count of. Use '.' to refer to the current directory."); |
24 | 24 |
|
25 | 25 | rootCommand.AddArgument(pathArgument); |
26 | 26 | rootCommand.AddOption(filterOption); |
|
0 commit comments