Skip to content

Commit

Permalink
fix: allow users to specificy --device without value (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak authored Jan 16, 2024
1 parent 98d2842 commit b90f746
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli-platform-ios/src/commands/runIOS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,10 @@ export default {
'"iPhone 15 (17.0)"',
},
{
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.',
},
{
name: '--udid <string>',
Expand Down

0 comments on commit b90f746

Please sign in to comment.