cmd/principal: Tweak command description as per @monopole's request.
Change-Id: I088f69f7eb57f894383b432a7ec368f0f8f69365
diff --git a/cmd/principal/doc.go b/cmd/principal/doc.go
index 63218fe..57d8f83 100644
--- a/cmd/principal/doc.go
+++ b/cmd/principal/doc.go
@@ -443,11 +443,12 @@
this tool is running in.
The key is printed as a base64 encoded bytes of the DER-format representation of
-the key.
+the key (suitable to be provided as an argument to the 'addtoroots' command for
+example).
-If the --pretty flag is provided, then the key is printed in the XX:XX:...:XX
-format typically used in the output of other commands. This representation,
-while prettier, is lossy.
+With --pretty, a 16-byte fingerprint of the key instead. This format is easier
+for humans to read and is used in output of other commands in this program, but
+is not suitable as an argument to the 'addtoroots' command.
Usage:
principal get publickey [flags]
diff --git a/cmd/principal/main.go b/cmd/principal/main.go
index 3602c34..05df6ee 100644
--- a/cmd/principal/main.go
+++ b/cmd/principal/main.go
@@ -301,11 +301,12 @@
that this tool is running in.
The key is printed as a base64 encoded bytes of the DER-format representation
-of the key.
+of the key (suitable to be provided as an argument to the 'addtoroots' command
+for example).
-If the --pretty flag is provided, then the key is printed in the XX:XX:...:XX
-format typically used in the output of other commands. This representation,
-while prettier, is lossy.
+With --pretty, a 16-byte fingerprint of the key instead. This format is easier
+for humans to read and is used in output of other commands in this program, but
+is not suitable as an argument to the 'addtoroots' command.
`,
Run: func(cmd *cmdline.Command, args []string) error {
ctx, shutdown := v23.Init()