{"id":15750310,"url":"https://github.com/objarni/basic-cmdline","last_synced_at":"2026-03-18T17:42:45.880Z","repository":{"id":142954166,"uuid":"406699863","full_name":"objarni/basic-cmdline","owner":"objarni","description":"Basic command line parser","archived":false,"fork":false,"pushed_at":"2021-09-19T06:56:39.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T07:15:48.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/objarni.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-09-15T09:37:28.000Z","updated_at":"2022-06-14T14:30:42.000Z","dependencies_parsed_at":"2023-04-27T23:53:00.012Z","dependency_job_id":null,"html_url":"https://github.com/objarni/basic-cmdline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/objarni/basic-cmdline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objarni%2Fbasic-cmdline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objarni%2Fbasic-cmdline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objarni%2Fbasic-cmdline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objarni%2Fbasic-cmdline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objarni","download_url":"https://codeload.github.com/objarni/basic-cmdline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objarni%2Fbasic-cmdline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28329806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-10-04T06:23:36.628Z","updated_at":"2026-01-12T00:40:08.889Z","avatar_url":"https://github.com/objarni.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Basic command line argument parser\n==================================\n\nWe want a library to help us write simple C code for parsing command line\narguments in our applications.\n\nMust have\n---------\nOnly one style of arguments are supported, on the form \"--flag argument\", e.g.\n\n   our_app --script file1.script\n\nIn this example, \"script\" is the key, and \"file1.script\" is the value.\n\nIt should be easy to determine that the parsing failed for some reason, so that\nthe application can write out a helpful usage text instead. Using single dash\nlike \"-script\" is an example of incorrect use.\n\nThe parser only needs to handle up to 5 of these key-value pairs, so this is an\nexample of using all five arguments 'slots':\n\n  our_app --log l.txt --verbose 5 --script use1.t --debug true --format JSON\n\nAny other argument or formatting does not parse, and should be easy to handle\nfor the application.\n\nNice to have\n------------\nThere is a popular single-letter forms of arguments, and this library does not\nneed to handle such; neither does \"--flag=arg\" style argument passing need to be\nsupported - but you are free to implement any as an extra exercise!\n\nE.g these examples are 'nice to have' but not required:\n\n  -s file1.script\n  -s=file1.script\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjarni%2Fbasic-cmdline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjarni%2Fbasic-cmdline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjarni%2Fbasic-cmdline/lists"}