override complete() to change the behaviour of Cmd completion
This commit is contained in:
parent
d0730472d8
commit
0eba4302a5
4 changed files with 34 additions and 17 deletions
|
|
@ -55,6 +55,9 @@ class Videoob(ReplApplication):
|
|||
self.format(video)
|
||||
self.flush()
|
||||
|
||||
def complete_nsfw(self, text, line, begidx, endidx):
|
||||
return ['on', 'off']
|
||||
|
||||
def do_nsfw(self, line):
|
||||
"""
|
||||
nsfw [on | off]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue