]> git.phdru.name Git - m_librarian.git/commitdiff
Default search type is 'start'
authorOleg Broytman <phd@phdru.name>
Tue, 29 Mar 2016 18:14:53 +0000 (21:14 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 29 Mar 2016 18:14:53 +0000 (21:14 +0300)
scripts/ml-search.py

index 403780ad0603cf62f5eacec8021af38b86d8dc63..e6827f7fa66d48d480ed4d583b5f63ba8873a349 100755 (executable)
@@ -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')