{"id":16558607,"url":"https://github.com/radarsh/args","last_synced_at":"2025-07-04T06:05:11.811Z","repository":{"id":24788177,"uuid":"28201894","full_name":"radarsh/args","owner":"radarsh","description":"A reusable solution for Command Line Arguments Parsing in Java","archived":false,"fork":false,"pushed_at":"2014-12-18T21:18:50.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T11:07:12.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.adarshr.com/args-engine-a-reusable-solution-for-command-line-arguments-parsing-in-java","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radarsh.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":"2014-12-18T21:14:09.000Z","updated_at":"2014-12-18T21:18:51.000Z","dependencies_parsed_at":"2022-08-22T16:50:27.519Z","dependency_job_id":null,"html_url":"https://github.com/radarsh/args","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarsh%2Fargs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarsh%2Fargs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarsh%2Fargs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarsh%2Fargs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radarsh","download_url":"https://codeload.github.com/radarsh/args/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945473,"owners_count":20046865,"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":"2024-10-11T20:23:11.233Z","updated_at":"2025-03-05T00:48:54.840Z","avatar_url":"https://github.com/radarsh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"args\n====\n\nA reusable solution for Command Line Arguments Parsing in Java\n\n## Usage\n\n```java\n// Initiate the arguments engine.\nArgsEngine engine = new ArgsEngine();\n\n// Configure the switches/options. Use true for valued options.\nengine.add(\"-q\", \"--quiet\");\nengine.add(\"-o\", \"--redirect-output\", true);\nengine.add(\"-h\", \"--help\");\n\n// Perform the parsing. The 'args' is the String[] received by main method.\nengine.parse(args);\n\n// Start fetching states of switches.\nboolean quiet = engine.getBoolean(\"-q\");\n\nif(engine.getBoolean(\"-o\")) {\n    // For valued options, use getString.\n    String redir = engine.getString(\"-o\");\n}\n\n// Use getNonOptions to filter out all options.\nString[] nonOptions = engine.getNonOptions();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradarsh%2Fargs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradarsh%2Fargs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradarsh%2Fargs/lists"}