Skip to content

Commit ac90938

Browse files
authoredJan 16, 2024
fix: allow users to specificy --device without value (#2263)
1 parent f50cc16 commit ac90938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎packages/cli-platform-apple/src/commands/runCommand/runOptions.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ export const getRunOptions = ({platformName}: BuilderCommand) => {
4343
'"iPhone 15 (17.0)"',
4444
},
4545
!isMac && {
46-
name: '--device <string>',
46+
name: '--device [string]', // here we're intentionally using [] over <> to make passed value optional to allow users to run only on physical devices
4747
description:
48-
'Explicitly set the device to use by name. The value is not required ' +
49-
'if you have a single device connected.',
48+
'Explicitly set the device to use by name. If the value is not provided,' +
49+
'the app will run on the first available physical device.',
5050
},
5151
...getBuildOptions({platformName}),
5252
];

0 commit comments

Comments
 (0)
Please sign in to comment.