-
-
Notifications
You must be signed in to change notification settings - Fork 515
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
Built-in parameter --version
conflicts with existing one
#1530
Comments
That’s unfortunate. We should make the ʼ-—versionʼ option completely opt-in and ensure it’s easy to override the behaviour if wanted. I’m not super familiar with the changes that went into this specific addition, but I will take a look tonight and see if we can’t push a 0.49.1 version out that fixes this. |
Thank you @patriksvensson , yes I fully agree. Making this |
There should be a version 0.49.1 out now. Let me know if that version solved this issue; otherwise, just reopen it. |
Yes, I confirm this is working properly with 0.49.1. Thank you again for quickly addressing this issue ! |
Do we have to enable the built-in version feature now and how do we do it? With 0.49.1 the
|
Use |
Then on 0.48.0,
I can't test whether this has been fixed on 0.49.1. If it hasn't, that should obviously be a separate issue. |
@samuel-lucas6 Could you provide a minimal reproducable example for this? |
Sorry for not providing much detail. If you have a mandatory string if (string.IsNullOrWhiteSpace(settings.StringOption)) {
return ValidationResult.Error("string option must be specified.");
} Then |
Information
Windows
Spectre.Console.Cli
v0.49.0Windows Terminal / Oh My Posh
Describe the bug
Recent
Spectre.Console.Cli
versions fixed the issue with the new built-in--version
parameter when running the application, but we can still spot this one when using--help
. My application is using--version|-v
for a dedicated usage for years, so I don't want to see nor use the newPrints version information
in the help menu. Is there a way to remove this ? Thanks !To Reproduce
You can use:
https://github.com/sailro/DependencyPath
https://www.nuget.org/packages/DependencyPath#readme-body-tab
with the following command
dependency-path --help
Expected behavior
I don't want to see a conflicting
--version
parameter with my own.Screenshots
Additional context
cc @FrankRay78 unfortunately, this simple little feature seems to be causing so many problems since its introduction.
Thanks !
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: