{"id":28906223,"url":"https://github.com/xmonader/suggestparse","last_synced_at":"2026-03-02T02:36:26.579Z","repository":{"id":57472207,"uuid":"111230010","full_name":"xmonader/suggestparse","owner":"xmonader","description":"argparse extension to allow command suggestions for invalid commands","archived":false,"fork":false,"pushed_at":"2017-11-18T20:05:18.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T04:34:25.914Z","etag":null,"topics":["argparse","argument-parser","python3","suggestions"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmonader.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-18T18:42:46.000Z","updated_at":"2022-07-28T09:09:07.000Z","dependencies_parsed_at":"2022-08-30T12:51:56.437Z","dependency_job_id":null,"html_url":"https://github.com/xmonader/suggestparse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xmonader/suggestparse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fsuggestparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fsuggestparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fsuggestparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fsuggestparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmonader","download_url":"https://codeload.github.com/xmonader/suggestparse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmonader%2Fsuggestparse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260370212,"owners_count":22998787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argparse","argument-parser","python3","suggestions"],"created_at":"2025-06-21T14:30:40.118Z","updated_at":"2026-03-02T02:36:26.567Z","avatar_url":"https://github.com/xmonader.png","language":"Python","readme":"# suggestparse\nargparse extension to allow command suggestions for invalid commands based on difflib closest_matches function.\n\n\n## Installation\nTo install \n```pip install suggestparse```\n\n## Example\n```python\ndef test():\n    parser = SuggestingArgumentParser()\n    parser.add_argument('--add', '-a', help='add')\n    parser.add_argument('--edit', '-e', help='edit')\n    parser.add_argument('--delete', '-d', help='delete')\n    parser.add_argument('--view', '-v', help='view')\n    print(parser.parse_args())\n\nif __name__ == '__main__':\n    test()\n```\n\nSo if you type `--vew` by accident or things like `git comit` or `git clon` you will see something like that.\n```\n$ python3 suggestparse.py --vew                                                                      \nDid you mean:  ['--view']\nusage: suggestparse.py [-h] [--add ADD] [--edit EDIT] [--delete DELETE]\n                       [--view VIEW]\nsuggestparse.py: error: unrecognized arguments: --vew\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmonader%2Fsuggestparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmonader%2Fsuggestparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmonader%2Fsuggestparse/lists"}