Browse Source
Merge pull request #2639 from abpframework/maliming/helpcommand
Output a warning if the command is not found.
pull/2649/head
Yunus Emre Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/HelpCommand.cs
|
|
|
@ -32,6 +32,13 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
return Task.CompletedTask; |
|
|
|
} |
|
|
|
|
|
|
|
if (!AbpCliOptions.Commands.ContainsKey(commandLineArgs.Target)) |
|
|
|
{ |
|
|
|
Logger.LogWarning($"There is no command named {commandLineArgs.Target}."); |
|
|
|
Logger.LogInformation(GetUsageInfo()); |
|
|
|
return Task.CompletedTask; |
|
|
|
} |
|
|
|
|
|
|
|
var commandType = AbpCliOptions.Commands[commandLineArgs.Target]; |
|
|
|
|
|
|
|
using (var scope = ServiceScopeFactory.CreateScope()) |
|
|
|
|