mirror of https://github.com/cheat/cheat.git
Use cheat_dir var instead of recall the function
This commit is contained in:
parent
98b254b799
commit
22d3d01827
2
cheat
2
cheat
|
@ -180,7 +180,7 @@ def main():
|
||||||
|
|
||||||
# list cheat directories and exit
|
# list cheat directories and exit
|
||||||
if keyphrase in ['-d', '--cheat-directories']:
|
if keyphrase in ['-d', '--cheat-directories']:
|
||||||
print("\n".join(cheat_directories()))
|
print("\n".join(cheat_dirs))
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
# list cheatsheets and exit
|
# list cheatsheets and exit
|
||||||
|
|
Loading…
Reference in New Issue