Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.pravejos:easy-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.pravejos:easy-cli

Java library for easy command line argument parsing

  • 1.2.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Examples Maven Central GitHub license

Overview

easy-cli is a java library for easy command line argument parsing. It can also print help message which shows the options available for the command line tool.

It is annotation based, which makes it easier to define and use the parsed arguments.

Features:
  • Open source
  • Easy to use
  • Supports different types of options
    • Short and long options (e.g. ls -r and ls --reverse)
      • POSIX like options (e.g. ls -ltr Test.java)
      • GNU like long options (e.g. ls --reverse --format=commas)
    • With space separator between the option and value (e.g. --option value or -o value)
  • Generates help message

A sample help message displayed by the library is shown below

Usage: java [JavaOptions] <mainclass> [OPTIONS] [PARAMETERS]
   or  java [JavaOptions] -jar <jarfile> [OPTIONS] [PARAMETERS]

Options:
  -E, --extended-regexp PATTERNS are extended regular expressions (default "false")
  -F, --fixed-strings PATTERNS are strings (default "false")
  -e, --regexp        use PATTERNS for matching
  -f, --file          take PATTERNS from FILE
  -i, --ignore-case   ignore case distinctions in patterns and data (default "false")
  -m, --max-count     stop after NUM selected lines

Parameters:
  Param1 (Mandatory) contain multiple patterns separated by newlines
  Param2 File (1) to check the pattern (default ".")
  Param3 File (2) to check the pattern
  Param4 File (3) to check the pattern

FAQs

Package last updated on 22 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc