-
Hi team, Is there anyway I can output help text when 0 arguments are given so that people don't have to use I can imagine something like this public override ValidationResult Validate(CommandContext context, DefaultCommandCommandSetting settings)
{
if (context.Remaining.Parsed.Count == 0)
{
return ValidationResult.Error(SomeHelpTextOfCurrentVerb)
}
...
} any recommendation for this? |
Beta Was this translation helpful? Give feedback.
Answered by
wayneyaoo
Dec 1, 2021
Replies: 1 comment 1 reply
-
I skim through the code and .. it seems that So that basically is no. Currently it doesn't have a way to achieve such behavior. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nils-a
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I skim through the code and .. it seems that
HelpWriter
is the one that does heavy lifting under the hood, and theCommandModel
it writes is internal and not open to configure.So that basically is no. Currently it doesn't have a way to achieve such behavior.