Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
Bug report
Bug description:
cmd.Cmd does not allow the definition of readline completion delimiters, therefore,complete_*()
methods will fail with completion options containing dashes (or other characters in readline's default list of delimiters).
Defining aCmd.completer_delims
(by defaultNone
) and then callingreadline.set_completer_delims(self.completer_delims)
(ifCmd.completer_delims
is notNone
) after importing readline will do the trick.
CPython versions tested on:
3.12
Operating systems tested on:
Linux