Skip to content

Commit

Permalink
fix: allow users to specificy --device without value (#2263)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Jan 16, 2024
1 parent f50cc16 commit ac90938
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit ac90938

Please sign in to comment.