Title: Typo suggestion prints "Did you mean ''?" when no command is close · Issue #2 · context-dot-dev/context-dev-cli · GitHub
Open Graph Title: Typo suggestion prints "Did you mean ''?" when no command is close · Issue #2 · context-dot-dev/context-dev-cli
X Title: Typo suggestion prints "Did you mean ''?" when no command is close · Issue #2 · context-dot-dev/context-dev-cli
Description: hey.. found a small bug when i was trying out the CLI.. when u type a command thats close to a real keyword, it gives a good suggestion like : $ context-dev brnd No help topic for 'brnd'. Did you mean 'context-dev brand'? but when the co...
Open Graph Description: hey.. found a small bug when i was trying out the CLI.. when u type a command thats close to a real keyword, it gives a good suggestion like : $ context-dev brnd No help topic for 'brnd'. Did you m...
X Description: hey.. found a small bug when i was trying out the CLI.. when u type a command thats close to a real keyword, it gives a good suggestion like : $ context-dev brnd No help topic for 'brnd'. D...
Opengraph URL: https://github.com/context-dot-dev/context-dev-cli/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typo suggestion prints \"Did you mean ''?\" when no command is close","articleBody":"hey.. found a small bug when i was trying out the CLI..\n\n when u type a command thats close to a real keyword, it gives a good suggestion like :\n\n $ context-dev brnd\n No help topic for 'brnd'. Did you mean 'context-dev brand'?\n\n but when the command is not close to anything, the suggestion comes out empty:\n\n $ context-dev qqqq\n No help topic for 'qqqq'. Did you mean ''?\n\n so it shows \"Did you mean ''?\" with nothing inside the quotes.\n\n i think the cause is in pkg/cmd/suggest.go: suggestCommand always returns a\n \"Did you mean '...'?\" string, even when it didnt find a close match. the\n original urfave/cli version returns an empty string in that case, and the\n caller only prints a suggestion when its not empty - so here the empty one\n slips through.\n\n happy to send a small PR for this if its useful - basically return an empty\n string when nothing's close, so it just stays quiet. real typos like 'brnd'\n would keep working.\n\n _side thought_ (separate from the bug, feel free to ignore): when nothing is\n close, instead of showing nothing, maybe it could nudge people toward the\n command list? something like:\n\n No help topic for 'qqqq'. Run 'context-dev --help' to see available commands.\n\n or if a couple of commands are actually similar, just list those few. not sure\n if that fits the direction u want - happy to help either way","author":{"url":"https://github.com/pranav-dp","@type":"Person","name":"pranav-dp"},"datePublished":"2026-06-13T16:28:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/context-dev-cli/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:18f80455-a619-caff-8d8a-e865e2a3a229 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF76:30B6AC:114151:16D07E:6A4D93AD |
| html-safe-nonce | b71ed64d44bbeb1e0732021dc5881072eb8455e75cfbb6e243f9724456f3fdbc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjc2OjMwQjZBQzoxMTQxNTE6MTZEMDdFOjZBNEQ5M0FEIiwidmlzaXRvcl9pZCI6IjkxOTMzNjI5OTc5MzMyMjkyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7e15f510be7c1605df518d93d3b07a23d9964f6befb99fc81675b1d3c1dd75b |
| hovercard-subject-tag | issue:4656158091 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/context-dot-dev/context-dev-cli/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a10e5b1b6bb8264e37b0181abde915661d4398fbffc238cb54d8b4957b19c15a/context-dot-dev/context-dev-cli/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a10e5b1b6bb8264e37b0181abde915661d4398fbffc238cb54d8b4957b19c15a/context-dot-dev/context-dev-cli/issues/2 |
| og:image:alt | hey.. found a small bug when i was trying out the CLI.. when u type a command thats close to a real keyword, it gives a good suggestion like : $ context-dev brnd No help topic for 'brnd'. Did you m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pranav-dp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/context-dot-dev/context-dev-cli git https://github.com/context-dot-dev/context-dev-cli.git |
| octolytics-dimension-user_id | 168444613 |
| octolytics-dimension-user_login | context-dot-dev |
| octolytics-dimension-repository_id | 1266212872 |
| octolytics-dimension-repository_nwo | context-dot-dev/context-dev-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1266212872 |
| octolytics-dimension-repository_network_root_nwo | context-dot-dev/context-dev-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 74e2a9c78f1e38588de4f25885878349d721eedf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width