{"id":29695624,"url":"https://github.com/timreichen/program","last_synced_at":"2026-05-17T15:41:25.198Z","repository":{"id":62421607,"uuid":"284030789","full_name":"timreichen/program","owner":"timreichen","description":"command-line interface for deno programs.","archived":false,"fork":false,"pushed_at":"2020-09-17T19:19:31.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T00:22:52.727Z","etag":null,"topics":["cli","deno"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/timreichen.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":"2020-07-31T12:22:46.000Z","updated_at":"2021-10-05T02:18:14.000Z","dependencies_parsed_at":"2022-11-01T17:32:25.829Z","dependency_job_id":null,"html_url":"https://github.com/timreichen/program","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/timreichen/program","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timreichen%2Fprogram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timreichen%2Fprogram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timreichen%2Fprogram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timreichen%2Fprogram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timreichen","download_url":"https://codeload.github.com/timreichen/program/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timreichen%2Fprogram/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266217392,"owners_count":23894287,"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":["cli","deno"],"created_at":"2025-07-23T09:01:35.371Z","updated_at":"2025-10-04T13:59:55.274Z","avatar_url":"https://github.com/timreichen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Program\n\nSimple command-line interface for deno programs.\n\n## Usage\n```ts\n// cli.ts\nimport { Program } from \"https://deno.land/x/program/mod.ts\"\n\nfunction log(args: any) {\n  if (args.quiet) { return }\n  console.log(args)\n}\n\nconst program = new Program({ name: \"logger\", description: \"program that logs\", version: \"1.0.1\" })\n\nprogram\n  .command({ name: \"log\", description: \"logs parsed arguments\", fn: log })\n  .option({ name: \"quiet\", alias: \"q\", description: \"Suppress diagnostic output\" })\n  .argument({ name: \"source_file\", multiple: true, optional: true })\n\nprogram.parse(Deno.args)\n\n```\n```sh\ndeno run cli.ts log hello world\n```\nOutput:\n```sh\n{ _: [ \"hello\", \"world\" ] }\n```\n\n## Help\nProgram generates help for program and subcommands automatically.\n\n### Program\n\n```sh\ndeno run cli.ts --help\n```\nOutput:\n```sh\nlogger 1.0.1\nprogram that logs\n\nUSAGE:\n    logger [OPTIONS] [SUBCOMMAND]\n\nOPTIONS:\n    -h, --help    Prints help information\n\nSUBCOMMANDS:\n    log           logs parsed arguments  \n```\n\n### Subcommand\n```sh\ndeno run test.ts log --help\n```\nOutput:\n```sh\nlog-logger\nlogs parsed arguments\n\nUSAGE:\n    log logger [OPTIONS] [source_file]...\n\nOPTIONS:\n    -q, --quiet    Suppress diagnostic output\n\nARGS:\n    [source_file]...   \n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimreichen%2Fprogram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimreichen%2Fprogram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimreichen%2Fprogram/lists"}