This commit is contained in:
Шурупов Илья Викторович 2026-01-03 19:54:44 +03:00
parent d8929d3064
commit a4524d7384
5 changed files with 31 additions and 16 deletions

View file

@ -129,6 +129,10 @@ class Interpreter(cmd.Cmd):
print(f"2 - fuzzy")
def do_link_pattern(self, arg):
if not len(arg.split()):
print("expected name of the pattern")
return
"""prints available linking patterns"""
pattern_id = int(arg.split()[0])
print_link_stats(link_patterns[pattern_id])
@ -187,4 +191,7 @@ class Interpreter(cmd.Cmd):
if __name__ == '__main__':
Interpreter().cmdloop()
try:
Interpreter().cmdloop()
except KeyboardInterrupt as kb:
print("process terminated")