terminal icon indicating copy to clipboard operation
terminal copied to clipboard

GetRequiredOptionValue function Returns invalid data if option value not specified

Open Nilavarasi-Ashika opened this issue 1 year ago • 2 comments

Describe the bug GetRequiredOptionValue function Returns the true instead of error message if required option value not specified in the command

Expected behavior GetRequiredOptionValue return error message and comeout from command execution instead of return "true".

Runtime OS: Linux .NET 7.0.2 OneImlx.Terminal 5.6.1-rc.1212232641

Nilavarasi-Ashika avatar Feb 02 '24 14:02 Nilavarasi-Ashika

@Nilavarasi-Ashika: Do you have an example of the command and options that you have defined ?

Command format: rootcmd testcommand -param1”Text1” -param2”Text2” -param3”Text3” All the params is OptionFlags.Required. Command formats that triggers the issue: rootcmd testcommand -param1”Text1” -param2”Text2” -param3 rootcmd testcommand -param1”Text1” -param2 -param3”Text3” rootcmd testcommand -param1 -param2”Text2” -param3”Text3”

Nilavarasi-Ashika avatar Feb 06 '24 07:02 Nilavarasi-Ashika