• Stars
    star
    756
  • Rank 60,056 (Top 2 %)
  • Language
    Java
  • License
    MIT License
  • Created over 13 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

args4j

args4j

args4j is a small Java class library that makes it easy to parse command line options/arguments in your CUI application. See more info at https://args4j.kohsuke.org/

Why should I use it?

See the quick intro

  • It makes command line parsing very easy by using annotations
  • Generate usage text very easily
  • Generate HTML/XML documentation listing all options
  • Full localization support
  • Designed to parse javac like options, as opposed to GNU-style (where ls -lR is considered to have two options l and R).
  • Licensed under the MIT license.

How can I use it?

  1. Check the sample. This is how your code will look like.
  2. Download the distribution or include the library from the Maven Repository.
  3. Write your code.

More Resources

  1. A small tutorial for the use of the Starter and Args4J
  2. javadoc
  3. How to generate a documentation for your CLI
  4. Extend args4j to handle other Java types
  5. Kohsuke's Blog: Parsing command line options in JDK 5.0 style
  6. A comparison between Commons CLI and Args4j in French

More Repositories

1

com4j

Type-safe Java/COM binding
C
146
star
2

akuma

Embeddable daemonization library
Java
130
star
3

wordnet-random-name

Human friendly random name generator for tests
Java
130
star
4

youdebug

Non-interactive Java debugger with Groovy
Groovy
80
star
5

metainf-services

Generates META-INF/services files automatically
Java
67
star
6

jcifs

Patched jcifs
Java
52
star
7

libpam4j

libpam4j
Java
45
star
8

dmc-cross-stitch

Converts a PNG image into the color palette of the DMC floss threads
HTML
28
star
9

ajaxterm4j

Java port of Ajaxterm
Java
24
star
10

docker-jenkins-demo-app

Shell
18
star
11

localizer

Type-safe localization message access for Java
Java
16
star
12

geoip

Maven packaging for GeoIP API for Java
Java
15
star
13

confluence-static-cache

Generates static file cache for Confluence
Java
13
star
14

git-filter-branch-tools

My scripts for doing elaborate git-filter-branch
Ruby
12
star
15

jnitl

JNI Template Library
C++
12
star
16

libzfs4j

libzfs binding for Java
Java
12
star
17

jinterop-proxy

Type-safe proxy for J-Interop
Java
11
star
18

maven-junit-plugin

I need something simpler than Surefire that I can hack.
Java
10
star
19

sorcerer

Java source code cross-reference/navigation tool
Java
9
star
20

javap

javap extracted standalone from OpenJDK for easier debugging and modification
Java
9
star
21

lego-sphere

Building sphere in Lego
Java
8
star
22

properjavardp

Git-svn import of ProperJavaRDP plus my local patches
Java
7
star
23

cucumber-annotation-indexer

Index cucumber for Java annotations for efficient runtime discovery
Java
7
star
24

rubywm

My modifcation to ruby window management library (https://cixar.com/svn/arcanum/ruby/wm)
C
7
star
25

ajp-client

AJP client code extracted from Tomcat
Java
7
star
26

httpunit

Patched httpunit
Java
6
star
27

javax.activation

Modified versions of Java Activation Framework
Java
6
star
28

xml-patcher

High-Fidelity XML Patching Library for Java
Java
6
star
29

transienttmp

Run a process with a transient /tmp
C
6
star
30

eiie-logger

Logs ExceptionInInitializerError, no matter what
Java
6
star
31

trilead-putty-extension

Extension to trilead for handling PuTTY keys
Java
6
star
32

build-pipeline-plugin

JavaScript
6
star
33

javafx-webdriver

Java
5
star
34

javadoc-capture

Annotation processor that captures Javadoc into resource files
Java
5
star
35

wordle-solver

Java
5
star
36

pgp-maven-plugin

PGP signing for Maven, done right.
Java
5
star
37

no-more-tears

Defer the symbol resolution in Java from compile time to runtime for relaxed linking. No more LinkageError.
Java
5
star
38

codemodel

Java
5
star
39

hadoop

hadoop release tracking + my local changes
Java
4
star
40

model-android-project

Sample android project with Gradle as the build system
Java
4
star
41

jasper

Java class file disassembler
Java
4
star
42

forked-daapd

C
4
star
43

loopy

fork of http://loopy.sourceforge.net
Java
4
star
44

recaptcha4j

Mirror of http://code.google.com/p/recaptcha4j/
Java
4
star
45

pom

Super POM for my GitHub projects
4
star
46

owasp-java-html-sanitizer

Maven packaging of OWASP Java HTML sanitizer
4
star
47

maven-skin

Maven skin
4
star
48

robust-http-client

Small Java library that performs HTTP download with automatic retry
Java
4
star
49

stopforumspam

Java API for stopforumspam
Java
4
star
50

embedded_su4j

Java binding for Solaris embedded_su(1M)
Java
3
star
51

xsom

XML Schema Object Model
Java
3
star
52

jenkins-puppet-notification-demo

Shell
3
star
53

petclinic

Kubernetes+Jenkins demo
Java
3
star
54

apt-ftparchive-merge

Tool that merges APT repository metadata between local files and remote files.
Java
3
star
55

windows-package-checker

Java compiler addon that looks out for windows reserved words in package names
Java
3
star
56

javac

Java
3
star
57

rngom

RELAX NG Object Model / Parser
Java
3
star
58

hadoop-importer

This little tool imports a directory full of files into Hadoop, and keep them in sync
Java
3
star
59

elb-dns

DNS wilrdcard for AWS Elastic Load Balancer
Java
3
star
60

intellij-fast-open-plugin

IntelliJ fast project opener
Java
3
star
61

docker-jenkins-demo-base

Acme Corp platform team builds the base Tomcat image for the company
3
star
62

empty-commit

Repository that hosts empty commit so that I can create empty gh-pages branch elsewhere easily by fetch.
2
star
63

udplogger

Receiver app for netconsole
C
2
star
64

gitlab-branch-source-plugin

Java
2
star
65

deployment-pipeline-demo1

Branch-driven CD pipeline
Shell
2
star
66

package-renamed-asm

ObjectWeb ASM library, packaged renamed by major version to avoid conflict within classpath
2
star
67

arch-official-packages

Mirror of git://projects.archlinux.org/svntogit/packages.git
Shell
2
star
68

intellij-maven-build-this-plugin

"Maven build this module" plugin for IntelliJ IDEA
Java
2
star
69

jenkins-dev.rb

A little CLI tool for Jenkins developer
Ruby
2
star
70

geometry2ldraw

A quick converter from digital height data to LEGO model
Java
2
star
71

tiger-types

Java
2
star
72

jexl-invokedynamic

invokedynamic experiments on JEXL
Java
2
star
73

sudoku-validator

Live coding demonstration
Java
2
star
74

test

2
star
75

remote-executor-gradle-plugin

Java
2
star
76

browserify4j

Java port of browserify
Java
2
star
77

hudson-slaves-dyndns

Automatic DNS update for Hudson slaves
Shell
2
star
78

mina-sshd-historical

git-svn tracking of Apache mina sshd. Only for recording historical sshd-1.0-hudson-2 release
Java
2
star
79

many-db

Experiments for embedded database performance/footprint
Java
2
star
80

bigtop-sandbox

My playground with Apache BigTop
Java
2
star
81

b2evo-import

b2evolution to wordpress conversion assistance
Java
2
star
82

debian-hudson-swarm-slave

Hudson swarm slave as a Debian package
Shell
2
star
83

test2

2
star
84

download-site-maven-plugin

Maven plugin that generates a download page that lists artifacts by version
Java
2
star
85

embedded-activemq

Experiment
Java
2
star
86

redstone-proxy

Better type-safe proxy and compiler that generates the proxy from XML-RPC introspection
Java
2
star
87

parse-ipr

Set CLASSPATH env var by parsing IntelliJ's .ipr file
Java
1
star
88

hello-world-webapp

Do nothing hello world webapp used for various demos
1
star
89

wagon-svn

Maven wagon implementation for Subversion
Java
1
star
90

java9-reflection-test

Test interaction of modules and reflection
Java
1
star
91

jenkinsci-app.io

Jenkins CI plugin for App.io
Java
1
star
92

lorem-ipsum

1
star
93

japex

Japex Micro-benchmark Framework
Java
1
star
94

literate-sandbox

Java
1
star
95

prng-benchmark

Benchmark to understand https://issues.jenkins-ci.org/browse/JENKINS-20108
Java
1
star
96

rescue-sandbox

Experimenting with the branching behaviour
1
star
97

remoting-plugin

remoting upgrade plugin for JENKINS-41196
Java
1
star
98

vcc

Java API for controlling virtual computers
1
star
99

stax-ex

Extended StAX API
Java
1
star
100

github-api-test

A test repository for testingthe github-api project
1
star