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

fix: allow users to specify --device without value #2263

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export const getRunOptions = ({platformName}: BuilderCommand) => {
'"iPhone 15 (17.0)"',
},
!isMac && {
name: '--device <string>',
name: '--device [string]', // here we're intentionally using [] over <> to make passed value optional to allow users to run only on physical devices
description:
'Explicitly set the device to use by name. The value is not required ' +
'if you have a single device connected.',
'Explicitly set the device to use by name. If the value is not provided,' +
'the app will run on the first available physical device.',
},
...getBuildOptions({platformName}),
];
Expand Down