13 Initialize database and import genres list. Doesn't really needed as
14 the next script does all that too.
22 ml-import.py [file.inpx ...]
24 Initialize database, import genres list and import a list of INPX files
25 listed in the command line. On subsequent runs doesn't destroy DB or
26 reimport genres; it also skips already import books but import new ones.
34 ml-search.py [-i] [-I] [-t {exact,start,substring}] ...
36 Search through the database and display results. Currently can only
37 search authors by name.
41 -i, --ignore-case ignore case (default is to guess)
42 -I, --case-sensitive don't ignore case
43 -t, --search-type {exact,start,substring}
44 search type: exact match, substring at the start (this is the default),
47 Options ``-i/-I`` cannot be used together as they are the opposite. In
48 case none of them are used the program guesses case-sensitivity by
49 looking at the arguments. If all arguments are lowercase the program
50 performs case-insensitive search. If there are UPPERCASE or MixedCase
51 arguments the program performs case-sensitive search.
53 Option ``-t/--search-type`` defines the search type. Search types are:
55 * exact - search for exact match; i.e. searching for "duck" returns
56 results for "duck" but not for "duckling";
57 * start - search for substring at the start of the search field; for
58 example searching for "duck" returns results for "duck" and "duckling"
59 but not for "McDuck"; this is the default search type.
60 * substring - search for any substring; "duck" => "duck", "duckling",
61 "McDuck" (except for case-sensitive search, of course).
69 ml-search.py [-i] [-I] [-t ...] author [-s surname] [-n name] [-m misc-name]
71 Search and print a list of authors by surname/name/misc name.
75 -s, --surname surname Search by surname
76 -n, --name name Search by name
77 -m, --misc-name misc. name Search by misc. name
81 ml-search.py -i author -s duck
83 Search and print a list of authors whose surname starts with "duck",
86 If a few options are given the search is limited with operator AND.
89 ml-search.py -i author -s duck -n mack
91 Search and print a list of authors whose surname starts with "duck", and
92 name starts with "mack", case insensitive.
99 ml-search.py [-i] [-I] [-t ...] ext name
101 Search and print a list of extensions by name.