mirror of
https://github.com/cheat/cheat.git
synced 2025-09-01 09:38:29 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
cccf37c284 | |||
15f70c2cc3 | |||
cebe3de389 |
@ -42,7 +42,7 @@ from docopt import docopt
|
||||
|
||||
if __name__ == '__main__':
|
||||
# parse the command-line options
|
||||
options = docopt(__doc__, version='cheat 2.3.0')
|
||||
options = docopt(__doc__, version='cheat 2.3.1')
|
||||
|
||||
# list directories
|
||||
if options['--directories']:
|
||||
|
@ -84,7 +84,7 @@ def search(term):
|
||||
for cheatsheet in sorted(get().items()):
|
||||
match = ''
|
||||
for line in open(cheatsheet[1]):
|
||||
if lowered_term in line:
|
||||
if lowered_term in line.lower():
|
||||
match += ' ' + line
|
||||
|
||||
if match != '':
|
||||
|
Reference in New Issue
Block a user