Add -a/--app support to briefcase open command#2651
Merged
freakboy3742 merged 5 commits intobeeware:mainfrom Jan 28, 2026
Merged
Add -a/--app support to briefcase open command#2651freakboy3742 merged 5 commits intobeeware:mainfrom
freakboy3742 merged 5 commits intobeeware:mainfrom
Conversation
freakboy3742
approved these changes
Jan 28, 2026
Member
freakboy3742
left a comment
There was a problem hiding this comment.
I've applied a couple of minor tweaks, but otherwise this is great! Thanks for the PR!
changes/2651.feature
Outdated
Member
There was a problem hiding this comment.
Changenotes should be .md files; I've also tweaked the text to better match the wording of a release note.
src/briefcase/commands/open.py
Outdated
Comment on lines
+77
to
+80
| # Now finalize ONLY the relevant app(s) | ||
| self.finalize( | ||
| next(iter(apps_to_open.values())) if len(apps_to_open) == 1 else None | ||
| ) |
Member
There was a problem hiding this comment.
This isn't the behavior of any other command; for consistency, we should be consistent in how finalize() is used.
That said - there is definitely an optimisation to be had here. However, the fix should be applied consistently across all commands. I've opened #2654 to track this possible improvement.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change do?
Adds support for the
-a / --appoption to thebriefcase opencommand, allowing a single app to be opened when multiple apps exist in a project.Why is this needed?
Currently,
briefcase openopens all apps in a project and does not support selecting a specific app via command-line arguments. This bringsopenin line with other commands such asupdatethat already support-a / --app.What was changed?
-a / --appoption handling to theopencommandtest_update_app_singleundertests/commands/openFixes #2635
PR Checklist