{"id":26685350,"url":"https://github.com/cosmictoast/janet-kargs","last_synced_at":"2026-02-24T12:03:00.478Z","repository":{"id":282040570,"uuid":"625392111","full_name":"CosmicToast/janet-kargs","owner":"CosmicToast","description":"Keyword argument parsing for Janet.","archived":false,"fork":false,"pushed_at":"2023-04-09T01:16:38.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-21T19:59:20.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Janet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CosmicToast.png","metadata":{"files":{"readme":"README.md","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},"funding":{"ko_fi":"cosmictoast"}},"created_at":"2023-04-09T00:57:10.000Z","updated_at":"2025-01-23T20:20:10.000Z","dependencies_parsed_at":"2025-03-12T13:39:08.500Z","dependency_job_id":"9a0d9023-678b-4031-9fcb-2e15174fcd8e","html_url":"https://github.com/CosmicToast/janet-kargs","commit_stats":null,"previous_names":["cosmictoast/janet-kargs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmicToast%2Fjanet-kargs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmicToast%2Fjanet-kargs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmicToast%2Fjanet-kargs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmicToast%2Fjanet-kargs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CosmicToast","download_url":"https://codeload.github.com/CosmicToast/janet-kargs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632414,"owners_count":20647194,"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":[],"created_at":"2025-03-26T10:15:20.619Z","updated_at":"2025-10-28T07:05:31.185Z","avatar_url":"https://github.com/CosmicToast.png","language":"Janet","funding_links":["https://ko-fi.com/cosmictoast"],"categories":[],"sub_categories":[],"readme":"# Janet Keyword Args (KArgs)\n\nKargs aim to make cli arguments function like Janet arguments.\nThis follows a few simple rules.\n\n1. If we're not expecting a value, we try to parse a flag.\n2. A flag is defined as either a short flag or a long flag.\n   A short flag can be `-a` or `-abcd` (this becomes an `:abcd` keyword, for use as flags).\n   A long flag can be `--abcd=value` (where value is parsed as in 3)\n   or `--abcd` (in which case the value is expected to be the next argument).\n3. If a flag is matched, flag semantics (as above) take over.\n   Otherwise, or if we expect a value, we parse it using the Janet parser.\n   If the parser outputs a symbol or fails to parse the value, we turn it into an as-is string.\n\nAnd that's it.\nHave fun!\n\nNote that this library is not stable, I reserve the right to change it whenever until 1.0.0 is tagged.\nThis is because I'm going to pull a hehecat and use it in production to see if it feels right or not.\n\n## Bugs\nTechnically, I use `parse` and not `parse-all`.\nI probably should use `parse-all` and also check for `length`.\nI don't care though.\nTest condition: \"1 hi\" should result in \"1 hi\" but results in 1.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmictoast%2Fjanet-kargs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmictoast%2Fjanet-kargs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmictoast%2Fjanet-kargs/lists"}