tmp
This commit is contained in:
parent
d8929d3064
commit
a4524d7384
5 changed files with 31 additions and 16 deletions
9
main.py
9
main.py
|
|
@ -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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue