{"id":67839,"library":"java-getopt","title":"GNU Java Getopt","description":"Java port of the GNU getopt command-line option parser, providing POSIX-style option parsing.","status":"active","version":"1.0.13","language":"java","source_language":null,"source_url":null,"tags":["cli","getopt","command-line","parsing"],"install":[{"cmd":"<dependency>\n  <groupId>gnu.getopt</groupId>\n  <artifactId>java-getopt</artifactId>\n  <version>1.0.13</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'gnu.getopt:java-getopt:1.0.13'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"Getopt","correct":"gnu.getopt.Getopt"}],"quickstart":{"code":"import gnu.getopt.Getopt;\n\nGetopt g = new Getopt(\"myapp\", args, \"ab:c\");\nint c;\nwhile ((c = g.getopt()) != -1) {\n    System.out.println((char) c);\n}","lang":"java","description":"Parse command-line options using GNU-style getopt."},"warnings":[{"fix":"Consider using picocli or JCommander as modern alternatives.","message":"This library is unmaintained and may have compatibility issues with newer Java versions.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'cli':21 'command':11,24 'command-lin':10,23 'getopt':3,9,22 'gnu':1,8 'java':2,4 'line':12,25 'option':13,19 'pars':20,26 'parser':14 'port':5 'posix':17 'posix-styl':16 'provid':15 'style':18","created_at":"2026-06-17T17:42:20.988317+00:00","updated_at":"2026-06-17T17:42:20.988317+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":"https://appdoc.app/artifact/gnu.getopt/java-getopt/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}