{"id":16282977,"url":"https://github.com/djcopley/argparse","last_synced_at":"2026-01-23T06:20:46.918Z","repository":{"id":127274488,"uuid":"161396815","full_name":"djcopley/argparse","owner":"djcopley","description":"A java argument parser","archived":false,"fork":false,"pushed_at":"2024-08-19T15:52:00.000Z","size":95,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T23:57:32.515Z","etag":null,"topics":["argument-parser","command-line","java","library"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djcopley.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":{"github":["djcopley"]}},"created_at":"2018-12-11T21:36:08.000Z","updated_at":"2024-08-19T15:51:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4f40453-0816-4d26-b1b1-fa5d7f810514","html_url":"https://github.com/djcopley/argparse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/djcopley/argparse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcopley%2Fargparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcopley%2Fargparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcopley%2Fargparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcopley%2Fargparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djcopley","download_url":"https://codeload.github.com/djcopley/argparse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcopley%2Fargparse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"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":["argument-parser","command-line","java","library"],"created_at":"2024-10-10T19:12:12.961Z","updated_at":"2026-01-23T06:20:46.895Z","avatar_url":"https://github.com/djcopley.png","language":"Java","readme":"# A Java Argument Parser\n\nParse command line arguments easily.\n\n### Usage example\n\n    import argparse.*;\n    import argparse.arguments.*;\n\n    public class Main {\n        public static void main(String[] args) {\n            ArgumentParser parser = new ArgumentParser(\"Test program\", args);\n    \n            PositionalArgument arg1 = new PositionalArgument(\"file\", \"Enter the output filename\");\n            FlagInputArgument arg2 = new FlagInputArgument(\"--file\", \"-f\", \"The input file path\");\n            FlagArgument arg3 = new FlagArgument(\"--verbose\", \"-v\", \"Display verbose options\");\n            \n            parser.addArgument(arg1);\n            parser.addArgument(arg2);\n            parser.addArgument(arg3);\n    \n            parser.parseArguments();\n            \n            // Prints true if arg1 is specified in args (PositionalArguments are required, this will always be true)\n            System.out.println(arg1.isPassed());\n            \n            // Prints arg1's input\n            System.out.println(arg1.getInput());\n            \n            // Prints true if arg2 is specified in args \n            System.out.println(arg2.isPassed());\n            \n            // Prints text arg2's input. Example: {\"-f\", \"hello\"} -\u003e hello\n            System.out.println(arg2.getInput());\n            \n            // Prints if arg3 is specified in args. Arg 3 is a FlagArgument and has no input. If getInput method is called, null is returned.\n            System.out.println(arg3.isPassed());\n        }\n    }","funding_links":["https://github.com/sponsors/djcopley"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjcopley%2Fargparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjcopley%2Fargparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjcopley%2Fargparse/lists"}