|
8 | 8 | Name = "linecount" |
9 | 9 | }; |
10 | 10 |
|
11 | | -var filterOption = new Option<string>(["-f", "--filter"], "A glob-pattern for files to include."); |
12 | | -var lineFilterOption = new Option<string>(["-l", "--line-filter"], "A RegEx for the lines to count."); |
13 | | -var exceptFilterOption = new Option<string>(["-x", "--exclude-filter"], "A glob-pattern for files not to include."); |
14 | | -var exceptLineFilterOption = new Option<string>(["-w", "--exlude-line-filter"], "A RegEx for the lines not to count."); |
| 11 | +var filterOption = new Option<string>(["-f", "--filter"], "A glob-pattern for files to include.") |
| 12 | +{ |
| 13 | + ArgumentHelpName = "pattern" |
| 14 | +}; |
| 15 | +var lineFilterOption = new Option<string>(["-l", "--line-filter"], "A RegEx for the lines to count.") |
| 16 | +{ |
| 17 | + ArgumentHelpName = "pattern" |
| 18 | +}; |
| 19 | +var exceptFilterOption = new Option<string>(["-x", "--exclude-filter"], "A glob-pattern for files not to include.") |
| 20 | +{ |
| 21 | + ArgumentHelpName = "pattern" |
| 22 | +}; |
| 23 | +var exceptLineFilterOption = new Option<string>(["-w", "--exlude-line-filter"], "A RegEx for the lines not to count.") |
| 24 | +{ |
| 25 | + ArgumentHelpName = "pattern" |
| 26 | +}; |
15 | 27 | var listFilesOption = new Option<bool>("--list", "Whether to list the files as they are being processed."); |
16 | | -var formatOption = new Option<Format>("--format", "The output format of the result."); |
| 28 | +var formatOption = new Option<Format>("--format", "The output format of the result.") |
| 29 | +{ |
| 30 | + ArgumentHelpName = "normal|raw|json" |
| 31 | +}; |
17 | 32 | var excludeDirectoriesOption = new Option<string[]>("--exclude-directories", "A list of directories to exclude.") |
18 | 33 | { |
19 | 34 | Arity = ArgumentArity.OneOrMore, |
20 | | - AllowMultipleArgumentsPerToken = true |
| 35 | + AllowMultipleArgumentsPerToken = true, |
| 36 | + ArgumentHelpName = "directories" |
21 | 37 | }; |
22 | 38 | var excludeFilesOption = new Option<string[]>("--exclude-files", "A list of files to exclude.") |
23 | 39 | { |
24 | 40 | Arity = ArgumentArity.OneOrMore, |
25 | | - AllowMultipleArgumentsPerToken = true |
| 41 | + AllowMultipleArgumentsPerToken = true, |
| 42 | + ArgumentHelpName = "files" |
26 | 43 | }; |
27 | 44 |
|
28 | 45 | 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."); |
|
0 commit comments