Skip to content

fix(scoop): Pass CLI arguments as string objects#4931

Merged
niheaven merged 4 commits intoScoopInstaller:developfrom
lewis-yeung:pass-args-as-strs
May 17, 2022
Merged

fix(scoop): Pass CLI arguments as string objects#4931
niheaven merged 4 commits intoScoopInstaller:developfrom
lewis-yeung:pass-args-as-strs

Conversation

@lewis-yeung
Copy link
Copy Markdown
Contributor

@lewis-yeung lewis-yeung commented May 17, 2022

Description

See #4927.

Motivation and Context

Fix #4927.

How Has This Been Tested?

With this fix, the following calls in PowerShell work correctly and won't throw exceptions:

  • scoop install <app> -s and scoop update <app> -s.
  • Any single-quoted short flags, e.g., scoop '-v'.

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

@rashil2000 rashil2000 requested a review from niheaven May 17, 2022 04:24
@niheaven
Copy link
Copy Markdown
Member

Just push a commit as review, and please check and test it.

Comment thread bin/scoop.ps1 Outdated
Comment thread bin/scoop.ps1
@niheaven niheaven merged commit ac2fb38 into ScoopInstaller:develop May 17, 2022
@lewis-yeung lewis-yeung deleted the pass-args-as-strs branch May 17, 2022 16:06
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

Successfully merging this pull request may close these issues.

2 participants