Skip to content

Commit b90f746

Browse files
fix: allow users to specificy --device without value (#2265)
1 parent 98d2842 commit b90f746

File tree

1 file changed

+3
-3
lines changed
  • packages/cli-platform-ios/src/commands/runIOS

1 file changed

+3
-3
lines changed

packages/cli-platform-ios/src/commands/runIOS/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,10 @@ export default {
647647
'"iPhone 15 (17.0)"',
648648
},
649649
{
650-
name: '--device <string>',
650+
name: '--device [string]', // here we're intentionally using [] over <> to make passed value optional to allow users to run only on physical devices
651651
description:
652-
'Explicitly set the device to use by name. The value is not required ' +
653-
'if you have a single device connected.',
652+
'Explicitly set the device to use by name. If the value is not provided,' +
653+
'the app will run on the first available physical device.',
654654
},
655655
{
656656
name: '--udid <string>',

0 commit comments

Comments
 (0)