Skip to content

Commit b604562

Browse files
committed
fix help arg
1 parent 7196b2a commit b604562

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SharpView/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ static void Run(string[] args)
427427
Logger.Write_Warning($@"There is no method does match with '{methodName}'");
428428
return;
429429
}
430-
if(args[1].ToLower() == "-help" || args[1].ToLower() == "help")
430+
if(args.Length > 1 && (args[1].ToLower() == "-help" || args[1].ToLower() == "help"))
431431
{
432432
Logger.Write_Output(Environment.NewLine + GetMethodHelp(method));
433433
Environment.Exit(0);

0 commit comments

Comments
 (0)