{"id":14961797,"url":"https://github.com/bend-n/gdcli","last_synced_at":"2026-02-03T23:32:06.010Z","repository":{"id":44846771,"uuid":"512046918","full_name":"bend-n/gdcli","owner":"bend-n","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-18T00:55:35.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T11:25:14.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"GDScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bend-n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"bendn"}},"created_at":"2022-07-08T23:08:35.000Z","updated_at":"2022-07-08T23:08:59.000Z","dependencies_parsed_at":"2024-09-02T17:03:19.345Z","dependency_job_id":null,"html_url":"https://github.com/bend-n/gdcli","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"05ff2a35e5c64f58d63664fc2ea0312041eea41f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bend-n/gdcli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bend-n%2Fgdcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bend-n%2Fgdcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bend-n%2Fgdcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bend-n%2Fgdcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bend-n","download_url":"https://codeload.github.com/bend-n/gdcli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bend-n%2Fgdcli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29061538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T23:14:54.203Z","status":"ssl_error","status_checked_at":"2026-02-03T23:14:50.873Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-09-24T13:27:46.300Z","updated_at":"2026-02-03T23:32:05.989Z","avatar_url":"https://github.com/bend-n.png","language":"GDScript","readme":"# godot cli options parser\n\n[![version](https://img.shields.io/badge/4.x-blue?logo=godot-engine\u0026logoColor=white\u0026label=godot\u0026style=for-the-badge)](https://godotengine.org \"Made with godot\")\n[![package](https://img.shields.io/npm/v/@bendn/gdcli?label=version\u0026style=for-the-badge)](https://www.npmjs.com/package/@bendn/gdcli)\n\u003ca href='https://ko-fi.com/bendn' title='Buy me a coffee' target='_blank'\u003e\u003cimg height='28' src='https://storage.ko-fi.com/cdn/brandasset/kofi_button_red.png' alt='Buy me a coffee'\u003e \u003c/a\u003e\n\nA utility for parsing command line arguments for godot.\n\n\u003e **Note** Versions \u003c 2.0.0 are for 3.x\n\n\u003e **Warning**\n\u003e\n\u003e Waiting 4 [godot-proposals/4815](https://github.com/godotengine/godot-proposals/issues/4815) for the full experience.\n\n---\n\n## Features\n\n- 0-\\* Arguments\n- Default values\n- Help creation\n- Any number of triggers\n\n### Usage example\n\n```gdscript\nvar p = Parser.new() # create the parser\np.add_argument(Arg.new({ # add an argument\n    triggers = [\"-F\", \"--fly\"], # triggers\n    n_args = 2, # number of arguments\n    help = \"Fly places\", # help message\n    default = [\"sky\", \"ground\"] # default args if called without arguments\n}))\np.add_argument(Arg.new({ # arg n2\n    triggers = [\"--eat\"],\n    n_args = \"*\", # any number of arguments\n    help = \"eats all args you give it\",\n    dest = \"restaurant\" # the variable it goes into (defaults to longest trigger)\n}))\np.add_argument(Arg.new({\n    triggers = [\"-H\", \"-?\"],\n    dest = \"help\",\n    help = \"show this help message and exit\",\n    action = \"store_true\"\n}))\nvar args = p.parse_arguments(OS.get_cmdline_args() + OS.get_cmdline_user_args()) # Parse\nif args.get(\"help\", false): # Check if we want help\n    print(p.help()) # Show help\nelse:\n    print(args) # Just show args otherwise\n```\n","funding_links":["https://ko-fi.com/bendn","https://ko-fi.com/bendn'","https://storage.ko-fi.com/cdn/brandasset/kofi_button_red.png'"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbend-n%2Fgdcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbend-n%2Fgdcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbend-n%2Fgdcli/lists"}