Re: Problem regarding command line completion

2011-10-03 Thread Peter Otten
Rajashree Thorat wrote: > Please can anyone help me in resolving following problem. > > import cmd > class CmdLineApp(cmd.Cmd): > > def do_grep(self, line): > print line > > option = ["--ignore-case", > "--invert-match","--word-regexp","--line-regexp"] >

Problem regarding command line completion

2011-10-03 Thread Rajashree Thorat
Hi All, Please can anyone help me in resolving following problem. import cmd class CmdLineApp(cmd.Cmd): def do_grep(self, line): print line option = ["--ignore-case", "--invert-match","--word-regexp","--line-regexp"] def complete_grep(self, text, line, be