Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does guava come with a command line argument parser [closed]

Tags:

guava

Does gauva come with a command line parser in itself ? or should I resort to jcommander/args4j/apache cli or something else ?

like image 582
smc Avatar asked Jun 11 '13 12:06

smc


People also ask

How to parse command line Java?

To parse command line parameters, Commons CLI uses the DefaultParser implementation of the CommandlineParser interface. DefaultParser has a method called parse() which accepts the options object and the args from the command line. Finally, you can use the HelpFormatter to print the help information to the user.

What is Java CLI?

The open source Java Command-Line Interface (CLI) allows users to manage files in BlackPearl using a simple command-line interface. It can be downloaded from the Java CLI page on GitHub. Inside of the release download there is a bin directory and a lib directory.

What are command line arguments in Java?

Java command-line argument is an argument i.e. passed at the time of running the Java program. In the command line, the arguments passed from the console can be received in the java program and they can be used as input.


1 Answers

No, it does not. Use one of those libraries you mentioned. Or something else.

This is the Guava User Guide, use that (or Google search) next time you're looking for some major task solution and are not sure whether it's included or not.

For minor tasks and utility methods, you'll need to refer to the actual JavaDocs.

like image 67
Petr Janeček Avatar answered Oct 17 '22 16:10

Petr Janeček