diff pwm.1.xml @ 11:85bce13237cf

Add filter expressions to list command Refactor field parsing so it can be used for parsing fields, field assignments and filter expressions.
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Mon, 31 Jul 2017 09:20:21 +0200
parents 17fb30016e64
children 8768fbd09bc5
line wrap: on
line diff
--- a/pwm.1.xml	Fri Jul 28 15:53:57 2017 +0200
+++ b/pwm.1.xml	Mon Jul 31 09:20:21 2017 +0200
@@ -34,7 +34,7 @@
       <email>guido+pwm@berhoerster.name</email>
       <personblurb/>
     </author>
-    <date>28 July, 2017</date>
+    <date>31 July, 2017</date>
   </info>
   <refmeta>
     <refentrytitle>pwm</refentrytitle>
@@ -201,12 +201,21 @@
           <listitem>
             <cmdsynopsis>
               <command>list</command>
+              <arg choice="opt" rep="repeat">
+                <replaceable>field</replaceable>~<replaceable>regex</replaceable>
+              </arg>
             </cmdsynopsis>
             <cmdsynopsis>
               <command>ls</command>
+              <arg choice="opt" rep="repeat">
+                <replaceable>field</replaceable>~<replaceable>regex</replaceable>
+              </arg>
               <sbr/>
             </cmdsynopsis>
-            <para>List all password database entries.</para>
+            <para>List password database entries. If one or more filter
+            expressions are specified, limit the displayed entries to those
+            whose <replaceable>field</replaceable> content matches the extended
+            regular expression <replaceable>regex</replaceable>.</para>
           </listitem>
         </varlistentry>
         <varlistentry>
@@ -529,6 +538,8 @@
       <manvolnum>1</manvolnum></citerefentry>,
       <citerefentry><refentrytitle>locale</refentrytitle>
       <manvolnum>5</manvolnum></citerefentry>,
+      <citerefentry><refentrytitle>regex</refentrytitle>
+      <manvolnum>5</manvolnum></citerefentry>,
       <link xlink:href="https://pwsafe.org/"/></para>
   </refsect1>
 </refentry>