1

I'm currently writing an application using the Cmd/Cmd2 module.

For a certain command, I need quoted strings to delimit certain argument values.

(Cmd) command "This is an argument" argument 04

However, I can't seem to get tab-complete working with strings that start with a double quote. For example

command This<tab>

will autocomplete to

command This is an argument

However,

command "This<tab>

doesn't autocomplete to anything. Does anyone have any ideas for a workaround?

Thanks!

Edit: NVM, it does support quotes... it just seems that I had a bug elsewhere in my code. Thanks!

jaka
  • 155
  • 1
  • 2
  • 10

1 Answers1

0

There's some good information here: How to make a python, command-line program autocomplete arbitrary things NOT interpreter

Community
  • 1
  • 1
NamPNQ
  • 379
  • 4
  • 13