Questions tagged [args4j]

arg4j makes it easy to parse command line options/arguments in your CUI application.

args4j is a small open-source class library that makes it easy to parse command line options/arguments in applications.

Features:

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

Try a small sample application today.

18 questions
0
votes
2 answers

Date in command line

I'm have an application which run from command line. As one of it's parameters it have a date from which application should start to process some data. Date can have two different formats yyyy-MM-dd and yyyy-MM-dd HH:mm:ss. But when I run…
user2281439
  • 673
  • 2
  • 11
  • 19
0
votes
1 answer

Using External Library in Java Error: No OptionHandler is registered to handle class java.lang.Object

I'm working on a project which is running on console. There are three class file. Main.java, User.java Options.java. I'm using args4j to parse command line arguments. I compile a project from the command line first time. I compiled the project with…
Erol Guzoğlu
  • 486
  • 6
  • 24
-1
votes
2 answers

How to parse some of the command line arguments to a single option in Java

I understand how I can parse command line strings directly and with options using args4j. But I couldn't find how to parse several arguments to a single options. What I mean is a command line like that: java -jar myprog.jar -i firstFile secondFile…
Namal
  • 281
  • 2
  • 10
1
2