Skip to content

Add -a/--app support to briefcase open command#2651

Merged
freakboy3742 merged 5 commits intobeeware:mainfrom
kshivani06:open-app-option
Jan 28, 2026
Merged

Add -a/--app support to briefcase open command#2651
freakboy3742 merged 5 commits intobeeware:mainfrom
kshivani06:open-app-option

Conversation

@kshivani06
Copy link
Contributor

What does this change do?

Adds support for the -a / --app option to the briefcase open command, allowing a single app to be opened when multiple apps exist in a project.

Why is this needed?

Currently, briefcase open opens all apps in a project and does not support selecting a specific app via command-line arguments. This brings open in line with other commands such as update that already support -a / --app.

What was changed?

  • Added -a / --app option handling to the open command
  • Ensured only the selected app is finalized and opened
  • Added tests analogous to test_update_app_single under tests/commands/open

Fixes #2635

PR Checklist

  • All new features have been tested
  • All new features have been documented (tests added)
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

I've applied a couple of minor tweaks, but otherwise this is great! Thanks for the PR!

Copy link
Member

Choose a reason for hiding this comment

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

Changenotes should be .md files; I've also tweaked the text to better match the wording of a release note.

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
)
Copy link
Member

Choose a reason for hiding this comment

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

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.

@freakboy3742 freakboy3742 merged commit 4dfb04a into beeware:main Jan 28, 2026
58 checks passed
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.

briefcase open doesn't support -a option

2 participants