Apache Commons CLI

GPTKB entity

Statements (33)
Predicate Object
gptkbp:instance_of gptkb:Library
gptkbp:bfsLayer 3
gptkbp:bfsParent gptkb:software_framework
gptkbp:dependency gptkb:Apache_Commons_Lang
gptkbp:developed_by gptkb:software_framework
gptkbp:example options.add Option('h', 'help', false, 'display help');
if (cmd.has Option('h')) { formatter.print Help('utility-name', options); }
CLI Parser parser = new CLI Parser();
Command Line Parser parser = new Default Parser();
Command Line cmd = parser.parse(options, args);
Help Formatter formatter = new Help Formatter();
String value = cmd.get Option Value('o');
formatter.print Help('utility-name', options);
options.add Option('o', 'option', true, 'an option');
gptkbp:features automatic help generation
customizable parsing behavior
support for long and short options
support for option groups
gptkbp:first_released 2002-05-01
gptkbp:has_documentation https://commons.apache.org/proper/commons-cli/apidocs/index.html
https://www.w3.org/2000/01/rdf-schema#label Apache Commons CLI
gptkbp:is_maintained_by gptkb:software_framework
gptkbp:is_used_for parsing command line options
gptkbp:language gptkb:Java
gptkbp:latest_version 1.4
2021-01-01
gptkbp:license Apache License 2.0
gptkbp:part_of gptkb:software_framework
gptkbp:release_date gptkb:2002
gptkbp:repository https://github.com/apache/commons-cli
gptkbp:uses command line applications
gptkbp:website https://commons.apache.org/proper/commons-cli/
gptkbp:written_in gptkb:Java