From: Oleg Broytman Date: Tue, 29 Mar 2016 18:14:53 +0000 (+0300) Subject: Default search type is 'start' X-Git-Tag: 0.0.4~45 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=54bfd1c5db1e4b2c62da18d834117e3f86b210cd Default search type is 'start' --- diff --git a/scripts/ml-search.py b/scripts/ml-search.py index 403780a..e6827f7 100755 --- a/scripts/ml-search.py +++ b/scripts/ml-search.py @@ -30,6 +30,7 @@ if __name__ == '__main__': '(default is case-insensitive search)') main_parser.add_argument('-t', '--search-type', choices=['exact', 'start', 'substring'], + default='start', help='search type: ' 'exact match, substring at the start ' '(this is the default), substring anywhere')