]> git.phdru.name Git - mimedecode.git/blobdiff - mimedecode.docbook
Fix: the 4 list options are no longer the last
[mimedecode.git] / mimedecode.docbook
index cc8ee2b7a8e5e4609b35acf64f6ae01aecf38d66..98a0dd416a9a7f5ffd868360b10df37957973fb4 100644 (file)
@@ -38,6 +38,9 @@
       <arg choice="opt">
          <option>-beit mask</option>
       </arg>
+      <arg choice="opt">
+         <option>-o output_file</option>
+      </arg>
       <arg choice="opt">input_file
         <arg choice="opt">output_file</arg>
       </arg>
@@ -237,10 +240,21 @@ flushed to stdout.
          </para>
       </listitem>
    </varlistentry>
+
+   <varlistentry>
+      <term>-o output_file</term>
+      <listitem>
+         <para>
+            Useful to set the output file in case of redirected stdin:
+            <programlisting language="sh">mimedecode.py -o output_file &lt; input_file
+cat input_file | mimedecode.py -o output_file</programlisting>
+         </para>
+      </listitem>
+   </varlistentry>
 </variablelist>
 
 <para>
-   The last 4 options (-beit) require more explanation. They allow a user
+   The 4 list options (-beit) require more explanation. They allow a user
 to control body decoding with great flexibility. Think about said mail
 archive; for example, its maintainer wants to put there only texts, convert
 Postscript/PDF to text, pass HTML and images as is, and ignore everything
@@ -248,7 +262,7 @@ else. Easy:
 </para>
 
 <para>
-<code language="shell">
+<code language="sh">
    mimedecode.py -t application/postscript -t application/pdf -b text/html
          -b 'image/*' -i '*/*'
 </code>