Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetRequiredOptionValue function Returns invalid data if option value not specified #113

Open
Nilavarasi-Ashika opened this issue Feb 2, 2024 · 2 comments
Assignees

Comments

@Nilavarasi-Ashika
Copy link

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

@perpetualintelligencegit
Copy link
Contributor

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

@Nilavarasi-Ashika
Copy link
Author

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”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants