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 2 replies

Comment options

You must be logged in to vote
2 replies
@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