-
Notifications
You must be signed in to change notification settings - Fork 909
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
Achieve near 100% compatibility with older POSH chocolatey client #54
Comments
@DarwinCSIWindowscom These options should make choco almost 100% compatible with the older version (in what to pass to the commands anyway). I went through each of the commands and put a note up top on how compatible they are with previous versions. |
As far as general compatibility, we are nearly 100% compatible with the previous version of choco. So many tools that use choco may be able to upgrade to the new version with one setting and operate just fine. |
Deprecate default source with a message.
To allow for the deprecation notice to go through successfully, redirect cver back to version.
Bring back version command and deprecate it for v1.
Bring back update command and properly deprecate it for v1 to later be replaced with what will perform the package index updates.
This is more of a nuget parity thing, as it is uses setapikey for setting keys.
When option parsing attempts to parse -version, it sees it as a bundled option because it finds -v as short option for verbose, so it errors on -e, which isn't a short option. Instead it should not error and allow the option to be picked up by possibly another set of option parsing.
If there are any unparsed switches/options after parsing is considered complete, then show the help menu. This is introduced to address a minor regression introduced by 51d59c8 , where the help menu would no longer be shown if an option was not parsed. It was previously handling this by throwing an error that would cause the help menu to show up. However b/c of the way the bundled option parsing is done, coupled with multiple passes through the parser, some options may be misinterpreted as bundled options and throw errors, which was corrected in the linked commit. Add additional behavior to detect unparsed args and show the help menu instead of attempting to roll with it.
Ha! Just kidding, don't deprecate default push source. Leave it set to chocolatey.org for now.
sources
The rest will be handled in linked tickets. #42, #52
The text was updated successfully, but these errors were encountered: