1 This patch is taken up from upstream http://bugs.mutt.org/3235
2 The new way getopt is called broke the possibility to use
3 "mutt -a attachfile recipient"
4 now -- is mandatory to separate file and recipient, even if only
5 a single file is attached, this patch fixes the documentation
11 An expanded version of the given alias is passed to stdout.
12 .IP "-a \fIfile\fP [...]"
13 Attach a file to your message using MIME.
14 -To attach multiple files, separating filenames and recipient addresses with
15 -"\-\-" is mandatory, e.g. \fBmutt \-a img.jpg *.png \-\- addr1 addr2\fP.
16 +When attaching single or multiple files, separating filenames and recipient addresses with
17 +"\-\-" is mandatory, e.g. \fBmutt \-a image.jpg \-\- addr1\fP or
18 +\fBmutt \-a img.jpg *.png \-\- addr1 addr2\fP.
19 +The \-a option must be placed at the end of command line options.
20 .IP "-b \fIaddress\fP"
21 Specify a blind-carbon-copy (BCC) recipient
22 .IP "-c \fIaddress\fP"
23 --- a/doc/manual.xml.head
24 +++ b/doc/manual.xml.head
26 <arg choice="opt"><option>-F</option>
27 <replaceable>muttrc</replaceable>
29 -<arg choice="opt"><option>-a</option>
30 -<replaceable>file</replaceable>
32 <arg choice="opt"><option>-c</option>
33 <replaceable>address</replaceable>
35 @@ -7008,15 +7005,12 @@
36 <replaceable>subject</replaceable>
39 -<arg choice="opt" rep="repeat">
41 <replaceable>file</replaceable>
42 +<arg choice="opt" rep="repeat"/>
45 -<arg choice="plain">--</arg>
48 -<replaceable>address</replaceable>
50 -<arg choice="opt" rep="repeat">
51 +<arg choice="plain" rep="repeat">
52 <replaceable>address</replaceable>