Change description of --detect to be more accurate (#550)
Co-authored-by: Steven An <stevenan@Stevens-MacBook-Pro.local>
diff --git a/README.md b/README.md
index b623b25..592d6b0 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@
Usage: ios-deploy [OPTION]...
-d, --debug launch the app in lldb after installation
-i, --id <device_id> the id of the device to connect to
- -c, --detect only detect if the device is connected
+ -c, --detect list all connected devices
-b, --bundle <bundle.app> the path to the app bundle to be installed
-a, --args <args> command line arguments to pass to the app when launching it
-s, --envs <envs> environment variables, space separated key-value pairs, to pass to the app when launching it
diff --git a/src/ios-deploy/ios-deploy.m b/src/ios-deploy/ios-deploy.m
index 06eb792..840b37b 100644
--- a/src/ios-deploy/ios-deploy.m
+++ b/src/ios-deploy/ios-deploy.m
@@ -2667,7 +2667,7 @@
@"Usage: %@ [OPTION]...\n"
@" -d, --debug launch the app in lldb after installation\n"
@" -i, --id <device_id> the id of the device to connect to\n"
- @" -c, --detect only detect if the device is connected\n"
+ @" -c, --detect list all connected devices\n"
@" -b, --bundle <bundle.app> the path to the app bundle to be installed\n"
@" -a, --args <args> command line arguments to pass to the app when launching it\n"
@" -s, --envs <envs> environment variables, space separated key-value pairs, to pass to the app when launching it\n"