X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=docs%2Fcommand_line.rst;h=3542054b8145f6d7ddd7d245efea66f28f938638;hb=3deac69630a6e95493973ea34c3770350b480db4;hp=f3f2f58daaa062c6d501ec22a811dc2a0bd3a20c;hpb=3d4f4dd5d00b4be4a3f308a8ff913ef2a8096c6a;p=m_librarian.git diff --git a/docs/command_line.rst b/docs/command_line.rst index f3f2f58..3542054 100644 --- a/docs/command_line.rst +++ b/docs/command_line.rst @@ -60,4 +60,35 @@ Option ``-t/--search-type`` defines the search type. Search types are: * substring - search for any substring; "duck" => "duck", "duckling", "McDuck" (except for case-sensitive search, of course). + +Author search +^^^^^^^^^^^^^ + +Usage:: + + ml-search.py [-i] [-I] [-t ...] author [-s surname] [-n name] [-m misc] + +Search and print a list of authors by surname/name/misc name. + +Options:: + + -s, --surname surname Search by surname + -n, --name name Search by name + -m, --misc misc. name Search by misc. name + +Example:: + + ml-search.py -i author -s duck + +Search and print a list of authors whose surname starts with "duck", +case insensitive. + +If a few options are given the search is limited with operator AND. +Example:: + + ml-search.py -i author -s duck -n mack + +Search and print a list of authors whose surname starts with "duck", and +name starts with "mack", case insensitive. + .. vim: set tw=72 :