File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,9 @@ void ConfigSourcetoScan()
233
233
{
234
234
WriteOnce . SafeLog ( "AnalyzeCommand::ConfigSourcetoScan" , LogLevel . Trace ) ;
235
235
236
+ if ( String . IsNullOrEmpty ( _arg_sourcePath ) )
237
+ throw new OpException ( ErrMsg . FormatString ( ErrMsg . ID . CMD_REQUIRED_ARG_MISSING , "SourcePath" ) ) ;
238
+
236
239
if ( Directory . Exists ( _arg_sourcePath ) )
237
240
{
238
241
try
Original file line number Diff line number Diff line change @@ -94,6 +94,13 @@ static public RuleSet GetDefaultRuleSet(Logger logger = null)
94
94
}
95
95
96
96
97
+ static public bool CLIExecutionContext ( )
98
+ {
99
+ Assembly assembly = Assembly . GetCallingAssembly ( ) ;
100
+ return assembly . GetName ( ) . Name . Contains ( "ApplicationInspector.CLI" ) ;
101
+ }
102
+
103
+
97
104
98
105
/// <summary>
99
106
/// Attempt to map application type tags or file type or language to identify
@@ -238,6 +245,9 @@ public static Logger SetupLogging(AllCommandOptions opts)
238
245
}
239
246
240
247
LogLevel log_level = LogLevel . Error ; //default
248
+ if ( String . IsNullOrEmpty ( opts . LogFileLevel ) )
249
+ opts . LogFileLevel = "Error" ;
250
+
241
251
try
242
252
{
243
253
log_level = LogLevel . FromString ( opts . LogFileLevel ) ;
Original file line number Diff line number Diff line change
1
+ Subproject commit e6d27482f8d019318d6c7a077a0239a5c407c891
You can’t perform that action at this time.
0 commit comments