镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Discussion options

You must be logged in to vote

Double check what version of cmd2 you're using because that behavior appears like it's 3.0 which changed the description field from a str to a Sequence[Any].

If you intend to stick with 3.0, then turn desc into a list when you pass it to CompletionItem.

cmd2.CompletionItem(keyword, [desc])

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Sripadvallabh
Comment options

@Sripadvallabh
Comment options

@Sripadvallabh
Comment options

Answer selected by Sripadvallabh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants