argparse4j Icon

argparse4j

beta

Command line argument parser library for Java

5.0 Stars (3)
2 Downloads (This Week)
Last Update:
Download argparse4j-0.5.0.jar
Browse All Files

Description

The argparse4j is a command line argument parser library for Java based on Python's argparse.

argparse4j Web Site

Features

  • Customizable option prefix characters, e.g. '--foo', '+f' and '/h'.
  • Supported positional arguments and optional arguments.
  • Variable number of arguments.
  • Generates well formatted line-wrapped help message.
  • Takes into account East Asian Width ambiguous characters when line-wrap.
  • Sub-commands like, git add.
  • Print default values in help message.
  • Choice from given collection of values.
  • Type conversion from option strings.
  • Can directly assign values into user defined classes using annotation.
  • Group arguments so that it will be printed in help message in more readable way.
  • Read additional arguments from file
  • Print candidates for unrecognized flags/commands.

KEEP ME UPDATED

User Ratings

★★★★★
★★★★
★★★
★★
3
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
Write a Review

User Reviews

  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Simply awesome! I tried out several argument parsing libraries before I found argparse4j. It is just so much more elegant and easy to use. I will never use anything else for Java again.

    Posted 08/15/2014
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Fantastic. Very good use of dynamic features of Java. Method chaining is also a great solution to Java's lack of kwargs. One improvement that would be nice, though, is the ability to specify multiple types in the .Type() method in the same way it can be done in the .setDefault() method. Not crucial by any means, but would make some tasks easier.

    Posted 02/26/2014
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    argparse4j works great

    Posted 03/27/2012
Read more reviews

Additional Project Details

Intended Audience

Developers

Programming Language

Java

Registered

2011-11-22

Thanks for helping keep SourceForge clean.

Screenshot instructions:
Windows
Mac
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies
X

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks
Screenshots can attract more users to your project.
Features can attract more users to your project.