Merge "v.io/jiri/profile: improved list command"
diff --git a/jiri-v23-profile/doc.go b/jiri-v23-profile/doc.go
index 5c0b5ed..99fef76 100644
--- a/jiri-v23-profile/doc.go
+++ b/jiri-v23-profile/doc.go
@@ -232,13 +232,15 @@
    jiri v23-profile list [flags] [<profiles>]
 
 <profiles> is a list of profiles to list, defaulting to all profiles if none are
-specifically requested.
+specifically requested. List can also be used to test for the presence of a
+specific target for the requested profiles. If the target is not installed, it
+will exit with an error.
 
 The jiri v23-profile list flags are:
  -env=
    specify an environment variable in the form: <var>=[<val>],...
  -info=
-   The following fields for use with --profile-info are available:
+   The following fields for use with -info are available:
    	SchemaVersion - the version of the profiles implementation.
    	DBPath - the path for the profiles database.
    	Target.InstallationDir - the installation directory of the requested profile.
diff --git a/jiridoc/doc.go b/jiridoc/doc.go
index d4d9093..7a00825 100644
--- a/jiridoc/doc.go
+++ b/jiridoc/doc.go
@@ -286,13 +286,15 @@
    jiri profile list [flags] [<profiles>]
 
 <profiles> is a list of profiles to list, defaulting to all profiles if none are
-specifically requested.
+specifically requested. List can also be used to test for the presence of a
+specific target for the requested profiles. If the target is not installed, it
+will exit with an error.
 
 The jiri profile list flags are:
  -env=
    specify an environment variable in the form: <var>=[<val>],...
  -info=
-   The following fields for use with --profile-info are available:
+   The following fields for use with -info are available:
    	SchemaVersion - the version of the profiles implementation.
    	DBPath - the path for the profiles database.
    	Target.InstallationDir - the installation directory of the requested profile.
@@ -1830,13 +1832,15 @@
    jiri v23-profile list [flags] [<profiles>]
 
 <profiles> is a list of profiles to list, defaulting to all profiles if none are
-specifically requested.
+specifically requested. List can also be used to test for the presence of a
+specific target for the requested profiles. If the target is not installed, it
+will exit with an error.
 
 The jiri v23-profile list flags are:
  -env=
    specify an environment variable in the form: <var>=[<val>],...
  -info=
-   The following fields for use with --profile-info are available:
+   The following fields for use with -info are available:
    	SchemaVersion - the version of the profiles implementation.
    	DBPath - the path for the profiles database.
    	Target.InstallationDir - the installation directory of the requested profile.