net.sourceforge.argparse4j:argparse4j-hadoop

The command-line parser library based on Python's argparse

License

License

MIT
Categories

Categories

Net
GroupId

GroupId

net.sourceforge.argparse4j
ArtifactId

ArtifactId

argparse4j-hadoop
Last Version

Last Version

0.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

The command-line parser library based on Python's argparse
Project URL

Project URL

https://argparse4j.github.io

Download argparse4j-hadoop

How to add to project

<!-- https://jarcasting.com/artifacts/net.sourceforge.argparse4j/argparse4j-hadoop/ -->
<dependency>
    <groupId>net.sourceforge.argparse4j</groupId>
    <artifactId>argparse4j-hadoop</artifactId>
    <version>0.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.sourceforge.argparse4j/argparse4j-hadoop/
implementation 'net.sourceforge.argparse4j:argparse4j-hadoop:0.9.0'
// https://jarcasting.com/artifacts/net.sourceforge.argparse4j/argparse4j-hadoop/
implementation ("net.sourceforge.argparse4j:argparse4j-hadoop:0.9.0")
'net.sourceforge.argparse4j:argparse4j-hadoop:jar:0.9.0'
<dependency org="net.sourceforge.argparse4j" name="argparse4j-hadoop" rev="0.9.0">
  <artifact name="argparse4j-hadoop" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.sourceforge.argparse4j', module='argparse4j-hadoop', version='0.9.0')
)
libraryDependencies += "net.sourceforge.argparse4j" % "argparse4j-hadoop" % "0.9.0"
[net.sourceforge.argparse4j/argparse4j-hadoop "0.9.0"]

Dependencies

compile (2)

Group / Artifact Type Version
net.sourceforge.argparse4j : argparse4j jar 0.9.0
org.apache.hadoop : hadoop-common jar 2.7.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.13.2

Project Modules

There are no modules declared in this project.

Argparse4j - The Java command-line argument parser library

https://api.travis-ci.com/argparse4j/argparse4j.svg?branch=master

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

Argparse4j is available in Maven central repository:

<dependency>
  <groupId>net.sourceforge.argparse4j</groupId>
  <artifactId>argparse4j</artifactId>
  <version>0.9.0</version>
</dependency>

IMPORTANT: When upgrading, read Migration. There is an important change in 0.5.0 which might break your code. The documentation describes the change and how to migrate from earlier versions.

There are still missing features which exist in argparse but not in argparse4j, but there are also new features which only exist in argparse4j.

Here is summary of features:

  • Supported positional arguments and named arguments.

  • Variable number of arguments.

  • Generates well formatted line-wrapped help message.

  • Suggests named arguments/sub-command if unrecognized arguments/sub-command were given, e.g.:

    unrecognized argument '--tpye'
    Did you mean:
      --type
  • Takes into account East Asian Width ambiguous characters when line-wrap.

  • Sub-commands like, git add.

  • Sub-command alias names, e.g., co for checkout.

  • Customizable option prefix characters, e.g. +f and /h.

  • 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.

  • Mutually exclusive argument group.

  • Read additional arguments from file.

  • Argument/sub-command abbreviations.

Requirements

Java 8 or higher is needed.

The main JAR contains module information for the Java Module System. The module name is net.sourceforge.argparse4j.

Building

To build you need Java 9 or higher, and Maven 3.2.3 or higher.

By default the build signs the artifacts. This requires GNU Privacy Guard and the setup of a personal key. Signing can be disabled by adding -Dgpg.skip=true to the arguments passed to Maven.

The primary documentation is done using Sphinx. You need Sphinx to run mvn site.

Versions

Version
0.9.0
0.8.1
0.8.0