Эх сурвалжийг харах

improve docu for {Pass,User}Cmd

Oswald Buddenhagen 4 жил өмнө
parent
commit
5b4766fbe4
1 өөрчлөгдсөн 5 нэмэгдсэн , 5 устгасан
  1. 5 5
      src/mbsync.1

+ 5 - 5
src/mbsync.1

@@ -326,10 +326,13 @@ Specify the login name on the IMAP server.
 \fBUserCmd\fR [\fB+\fR]\fIcommand\fR
 Specify a shell command to obtain a user rather than specifying a
 user directly. This allows you to script retrieving user names.
+.br
 The command must produce exactly one line on stdout; the trailing newline
 is optional.
 Prepend \fB+\fR to the command to indicate that it produces TTY output
 (e.g., a prompt); failure to do so will merely produce messier output.
+Remember to backslash-escape double quotes and backslashes embedded into
+the command.
 .
 .TP
 \fBPass\fR \fIpassword\fR
@@ -342,11 +345,8 @@ configuration file, \fBmbsync\fR will prompt you for a password.
 \fBPassCmd\fR [\fB+\fR]\fIcommand\fR
 Specify a shell command to obtain a password rather than specifying a
 password directly. This allows you to use password files and agents.
-The command must produce exactly one line on stdout; the trailing newline is
-optional.
-Prepend \fB+\fR to the command to indicate that it produces TTY output
-(e.g., a decryption password prompt); failure to do so will merely produce
-messier output.
+.br
+See \fBUserCmd\fR above for details.
 .
 .TP
 \fBUseKeychain\fR \fByes\fR|\fBno\fR