@@ -23,10 +23,10 @@ public class AllCommandOptions
23
23
[ Verb ( "analyze" , HelpText = "Inspect source directory/file/compressed file (.tgz|zip) against defined characteristics" ) ]
24
24
public class AnalyzeCommandOptions : AllCommandOptions
25
25
{
26
- [ Option ( 's' , "source-path" , Required = true , HelpText = "Path to source code to inspect (required) " ) ]
26
+ [ Option ( 's' , "source-path" , Required = true , HelpText = "Source file or directory to inspect" ) ]
27
27
public string SourcePath { get ; set ; }
28
28
29
- [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Path to output file" ) ]
29
+ [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Output file path " ) ]
30
30
public string OutputFilePath { get ; set ; }
31
31
32
32
[ Option ( 'f' , "output-file-format" , Required = false , HelpText = "Output format [html|json|text]" , Default = "html" ) ]
@@ -35,7 +35,7 @@ public class AnalyzeCommandOptions : AllCommandOptions
35
35
[ Option ( 'e' , "text-format" , Required = false , HelpText = "Match text format specifiers" , Default = "Tag:%T,Rule:%N,Ruleid:%R,Confidence:%X,File:%F,Sourcetype:%t,Line:%L,Sample:%m" ) ]
36
36
public string TextOutputFormat { get ; set ; }
37
37
38
- [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules path" ) ]
38
+ [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules file or directory path" ) ]
39
39
public string CustomRulesPath { get ; set ; }
40
40
41
41
[ Option ( 't' , "tag-output-only" , Required = false , HelpText = "Output only identified tags" , Default = false ) ]
@@ -47,7 +47,7 @@ public class AnalyzeCommandOptions : AllCommandOptions
47
47
[ Option ( 'd' , "allow-dup-tags" , Required = false , HelpText = "Output contains unique and non-unique tag matches" , Default = false ) ]
48
48
public bool AllowDupTags { get ; set ; }
49
49
50
- [ Option ( 'b' , "supress -browser-open" , Required = false , HelpText = "HTML formatted output is automatically opened to default browser" , Default = false ) ]
50
+ [ Option ( 'b' , "suppress -browser-open" , Required = false , HelpText = "Suppress automatic open to HTML output using default browser" , Default = false ) ]
51
51
public bool AutoBrowserOpen { get ; set ; }
52
52
53
53
[ Option ( 'c' , "confidence-filters" , Required = false , HelpText = "Output only matches with specified confidence <value>,<value> [high|medium|low]" , Default = "high,medium" ) ]
@@ -65,59 +65,60 @@ public class AnalyzeCommandOptions : AllCommandOptions
65
65
[ Verb ( "tagdiff" , HelpText = "Compares unique tag values between two source paths" ) ]
66
66
public class TagDiffCommandOptions : AllCommandOptions
67
67
{
68
- [ Option ( "src1" , Required = true , HelpText = "Source 1 to compare (required) " ) ]
68
+ [ Option ( "src1" , Required = true , HelpText = "Source 1 to compare" ) ]
69
69
public string SourcePath1 { get ; set ; }
70
70
71
- [ Option ( "src2" , Required = true , HelpText = "Source 2 to compare (required " ) ]
71
+ [ Option ( "src2" , Required = true , HelpText = "Source 2 to compare" ) ]
72
72
public string SourcePath2 { get ; set ; }
73
73
74
74
[ Option ( 't' , "test-type" , Required = false , HelpText = "Type of test to run [equality|inequality]" , Default = "equality" ) ]
75
75
public string TestType { get ; set ; }
76
76
77
- [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules path" ) ]
77
+ [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules file or directory path" ) ]
78
78
public string CustomRulesPath { get ; set ; }
79
79
80
80
[ Option ( 'i' , "ignore-default-rules" , Required = false , HelpText = "Exclude default rules bundled with application" , Default = false ) ]
81
81
public bool IgnoreDefaultRules { get ; set ; }
82
82
83
- [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Path to output file" ) ]
83
+ [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Output file path " ) ]
84
84
public string OutputFilePath { get ; set ; }
85
85
86
86
[ Option ( 'x' , "console-verbosity" , Required = false , HelpText = "Console verbosity [high|medium|low|none]" , Default = "medium" ) ]
87
87
public string ConsoleVerbosityLevel { get ; set ; }
88
88
89
89
}
90
90
91
- [ Verb ( "tagtest" , HelpText = "Test presence of smaller set or custom tags in source (compare or verify modes)" ) ]
91
+
92
+ [ Verb ( "tagtest" , HelpText = "Test (T/F) for presence of custom rule set in source" ) ]
92
93
public class TagTestCommandOptions : AllCommandOptions
93
94
{
94
- [ Option ( 's' , "source-path" , Required = true , HelpText = "Source to test (required) " ) ]
95
+ [ Option ( 's' , "source-path" , Required = true , HelpText = "Source file or directory to inspect " ) ]
95
96
public string SourcePath { get ; set ; }
96
97
97
98
[ Option ( 't' , "test-type" , Required = false , HelpText = "Test to perform [rulespresent|rulesnotpresent] " , Default = "rulespresent" ) ]
98
99
public string TestType { get ; set ; }
99
100
100
- [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules path" ) ]
101
+ [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules file or directory path" ) ]
101
102
public string CustomRulesPath { get ; set ; }
102
103
103
- [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Path to output file" ) ]
104
+ [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Output file path " ) ]
104
105
public string OutputFilePath { get ; set ; }
105
106
106
107
[ Option ( 'x' , "console-verbosity" , Required = false , HelpText = "Console verbosity [high|medium|low|none]" , Default = "medium" ) ]
107
108
public string ConsoleVerbosityLevel { get ; set ; }
108
109
109
110
}
110
111
111
- [ Verb ( "exporttags" , HelpText = "Export default unique rule tags to view what features may be detected" ) ]
112
+ [ Verb ( "exporttags" , HelpText = "Export unique rule tags to view what code features may be detected" ) ]
112
113
public class ExportTagsCommandOptions : AllCommandOptions
113
114
{
114
- [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules path" ) ]
115
+ [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules file or directory path" ) ]
115
116
public string CustomRulesPath { get ; set ; }
116
117
117
118
[ Option ( 'i' , "ignore-default-rules" , Required = false , HelpText = "Exclude default rules bundled with application" , Default = false ) ]
118
119
public bool IgnoreDefaultRules { get ; set ; }
119
120
120
- [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Path to output file" ) ]
121
+ [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Output file path " ) ]
121
122
public string OutputFilePath { get ; set ; }
122
123
123
124
[ Option ( 'x' , "console-verbosity" , Required = false , HelpText = "Console verbosity [high|medium|low|none]" , Default = "medium" ) ]
@@ -128,10 +129,10 @@ public class ExportTagsCommandOptions : AllCommandOptions
128
129
[ Verb ( "verifyrules" , HelpText = "Verify custom rules syntax is valid" ) ]
129
130
public class VerifyRulesCommandOptions : AllCommandOptions
130
131
{
131
- [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules path" ) ]
132
+ [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules file or directory path" ) ]
132
133
public string CustomRulesPath { get ; set ; }
133
134
134
- [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Path to output file" ) ]
135
+ [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Output file path " ) ]
135
136
public string OutputFilePath { get ; set ; }
136
137
137
138
[ Option ( 'x' , "console-verbosity" , Required = false , HelpText = "Console verbosity [high|medium|low|none]" , Default = "medium" ) ]
@@ -140,16 +141,16 @@ public class VerifyRulesCommandOptions : AllCommandOptions
140
141
141
142
}
142
143
143
- [ Verb ( "packrules" , HelpText = "Combine multiple rules into one file for ease in distribution" ) ]
144
+ [ Verb ( "packrules" , HelpText = "Combine multiple rule files into one file for ease in distribution" ) ]
144
145
public class PackRulesCommandOptions : AllCommandOptions
145
146
{
146
- [ Option ( 'd' , "pack-default-rules" , Required = false , HelpText = "Repack default rules" ) ]
147
+ [ Option ( 'd' , "pack-default-rules" , Required = false , HelpText = "Repack default rules. Automatic on Application Inspector build " ) ]
147
148
public bool RepackDefaultRules { get ; set ; }
148
149
149
- [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules path" ) ]
150
+ [ Option ( 'r' , "custom-rules-path" , Required = false , HelpText = "Custom rules file or directory path" ) ]
150
151
public string CustomRulesPath { get ; set ; }
151
152
152
- [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Path to output file" ) ]
153
+ [ Option ( 'o' , "output-file-path" , Required = false , HelpText = "Output file path " ) ]
153
154
public string OutputFilePath { get ; set ; }
154
155
155
156
[ Option ( 'i' , "not-indented" , Required = false , HelpText = "Remove indentation from json output" , Default = false ) ]
0 commit comments