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

Inconsistent behaviour when using --password #3542

Open
6 tasks done
pauby opened this issue Oct 29, 2024 · 0 comments
Open
6 tasks done

Inconsistent behaviour when using --password #3542

pauby opened this issue Oct 29, 2024 · 0 comments

Comments

@pauby
Copy link
Member

pauby commented Oct 29, 2024

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

Many commands that support username and password will behave unexpectedly if you pass -user anyValue -p.

For instance:

  • install: Outputs help, complains that a package name is required.
  • search: Outputs help, prompts for a password.

There are possibly other commands effected.

What is Expected?

Help shouldn't be output and commands should behave as expected and consistently.

How Did You Get This To Happen?

  1. choco install cloudflared -u test -p

  2. This shows the install command help and complains that a package name is required: Package name is required. Please pass at least one package name to install.

  3. choco search cloudflared -u test -p

  4. This shows the search command help and prompts for a password: User name 'test' provided. Password:

System Details

  • Operating System: Windows 11
  • Windows PowerShell Version: 7
  • Chocolatey CLI Version: 2.3
  • Chocolatey Licensed Extension version: 6.2.1
  • Chocolatey License type (Professional / Business / ?): Business
  • Terminal/Emulator: Windows Terminal

Installed Packages

N/A

Output Log

N/A

Additional Context

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

No branches or pull requests

1 participant