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

Add ability to pass arguments to running apps #1077

Closed
freakboy3742 opened this issue Feb 3, 2023 · 0 comments · Fixed by #1078
Closed

Add ability to pass arguments to running apps #1077

freakboy3742 opened this issue Feb 3, 2023 · 0 comments · Fixed by #1078
Labels
enhancement New features, or improvements to existing features.

Comments

@freakboy3742
Copy link
Member

What is the problem or limitation you are having?

Briefcase doesn't currently allow users to pass command line arguments to the apps being executed. This would be especially useful in test mode, as it would allow passing in specific test targets (or other testing arguments) without making source code modifications to the

Describe the solution you'd like

briefcase dev and briefcase run should support "passthrough arg" syntax. i.e.:

briefcase dev --test -- --args --for test program
briefcase run iOS  -- --args --for test program

Anything before the -- argument is consumed by Briefcase; anything after the -- is ignored by Briefcase, and passed verbatim to the running app.

Describe alternatives you've considered

  1. Do nothing, and expect the user to modify their program to introduce test arguments.
  2. Expose specific arguments at the briefcase level for specific purposes (e.g., a --target argument to let the user specify the test target.

Passthrough arguments will be a lot more flexible.

Additional context

When this change is made, the test harness in the briefcase template should be updated to honor command line arguments and pass them to the underlying test program.

@freakboy3742 freakboy3742 added the enhancement New features, or improvements to existing features. label Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant