Re: Line completion with custom commands

2009-01-09 Thread gu
Marco Mariani wrote: gu wrote: I see, but how does django-admin work, then? from bash: complete -W "doSomething doSomethingElse doSomethingDifferent" myProgram This worked like a charm, thank you so much. Is this available for bash only or any shell? -- http://mail.python.org/mailman/lis

Re: Line completion with custom commands

2009-01-09 Thread Steve Holden
gu wrote: > Steve Holden wrote: >> gu wrote: >>> Hi, my Python program can be launched with a range of different options >>> (or subcommands) like: >>> >>> $ myProgram doSomething >>> $ myProgram doSomethingElse >>> $ myProgram nowDoSomethingDifferent >>> >>> I want it to use auto-completion with s

Re: Line completion with custom commands

2009-01-09 Thread Marco Mariani
gu wrote: I see, but how does django-admin work, then? from bash: complete -W "doSomething doSomethingElse doSomethingDifferent" myProgram -- http://mail.python.org/mailman/listinfo/python-list

Re: Line completion with custom commands

2009-01-09 Thread gu
Steve Holden wrote: gu wrote: Hi, my Python program can be launched with a range of different options (or subcommands) like: $ myProgram doSomething $ myProgram doSomethingElse $ myProgram nowDoSomethingDifferent I want it to use auto-completion with so that if i type "myProgram d" it returns

Re: Line completion with custom commands

2009-01-09 Thread Steve Holden
gu wrote: > > Hi, my Python program can be launched with a range of different options > (or subcommands) like: > > $ myProgram doSomething > $ myProgram doSomethingElse > $ myProgram nowDoSomethingDifferent > > I want it to use auto-completion with so that if i type "myProgram d" it > returns "m

Line completion with custom commands

2009-01-09 Thread gu
Hi, my Python program can be launched with a range of different options (or subcommands) like: $ myProgram doSomething $ myProgram doSomethingElse $ myProgram nowDoSomethingDifferent I want it to use auto-completion with so that if i type "myProgram d" it returns "myProgram doSomething" and