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

Fixes issue where --local flag would cause extensions commands to error out #4584

Merged
merged 4 commits into from May 24, 2022

Conversation

joehan
Copy link
Contributor

@joehan joehan commented May 24, 2022

Description

ext:* commands should not error out when run with --local, even though it was deprecated (fixes #4577)

Scenarios Tested

Now with a warning message
Screen Shot 2022-05-24 at 1 29 57 PM

@@ -34,6 +34,7 @@ marked.setOptions({
export default new Command("ext:configure <extensionInstanceId>")
.description("configure an existing extension instance")
.withForce()
.option("--local", "deprecated")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strongly, strongly consider printing a warning if --local is included. IIRC, you should be able to check options.local.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - done

@joehan joehan requested a review from bkendall May 24, 2022 20:43
@bkendall bkendall enabled auto-merge (squash) May 24, 2022 21:07
@bkendall bkendall merged commit 08e3d29 into master May 24, 2022
@bkendall bkendall deleted the jh-fix--local branch May 24, 2022 21:17
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.

error: unknown option '--local' when trying to install an extension using CLI
2 participants