Questions tagged [jcommander]

A java utility for CLI parameters parsing.

A java utility for CLI parameters parsing.

See http://jcommander.org/ for full details.

40 questions
0
votes
1 answer

Creating a command alias with yarn link?

Is it possible to alias when running yarn link. Specifically when yarn link is run (As described here) and the package.json name attribute is contacto yarn link creates an executable command named contacto. But what if we it to be co instead such…
Ole
  • 41,793
  • 59
  • 191
  • 359
0
votes
1 answer

store tuples in a list using jcommander

I tried to store string tuples in a arraylist, when in the terminal I put the following command > java Main -P A,60 B,90 C,50 D,40 E,70 F,100 G,1000 , but the elements are separated in two when the program finds a comma, so I get this…
Dogo-San
  • 345
  • 1
  • 4
  • 13
0
votes
1 answer

How to set description for command, but not for option

For every command I have a concrete class which implement certain interface. For example: public class FooCommand implements Command{ @Parameter(names = {"-?","--help"}, description = "display this help",help = true) private boolean…
Pavel_K
  • 10,748
  • 13
  • 73
  • 186
0
votes
0 answers

How to give name to a CLI instead of running via java

I am building a Command-line-interface using JCommander. Its a maven project. I have a main which is doing all the controls. suppose, my application main java file is - AbcMain.java. I can run it as- javac AbcMain.java java AbcMain…
0
votes
1 answer

Unable to define maxInstances when launching hub via Selenium 3.0.0 beta3

I've been using the selenium-server-standalone-2.53.0.jar and recently tried to upgrade to version 3.0.0-beta3. I'm attempting to spin-up a hub using the maxInstances parameter with the following command: java -jar…
0
votes
0 answers

Java Bad path warning, and import error with my makefile

when I run my program I get the nexts errors: $ make JAVAC src/Document.java warning: [path] bad path element "lib\jcommander.jar:lib\com": no such file or directory 1 warning src\Menu.java:1: error: package com.beust.jcommander does not…
Igna94
  • 75
  • 2
  • 8
0
votes
1 answer

how to use JCommander

I have a sample code I downloaded and want to run it, the issue is its using JCommander to load some configurations, I do not have the configuration file yet it wants to load one, so I want to know; How can I use JCommander, i read the documentation…
Chrome Lanta
  • 67
  • 1
  • 11
0
votes
2 answers

How to add listener event to JComboBox in Java

I need to know how to effectively add a mouse event to a JComboBox or any other approach that works. I found some possible solutions here and also different sites but I can't get it to work. It seems that mouseEvent is not appropriate to use on…
Bob
  • 564
  • 2
  • 10
  • 25
0
votes
0 answers

"grep like" CLI using JCommander

I'm trying JCommander for the first time and I can't seem to adjust it to my needs. I am trying to define a CLI similar in concept to that of the grep command: command [options] PATTERN [FILE ...] Usage example: command -debug "[A-Z]*" *.xml But,…
RonK
  • 9,472
  • 8
  • 51
  • 87
-2
votes
1 answer

How to debug a console App which implemented using JCommander?

I have created a console app using JCommander. But I don't know how to debug it? What is the approach to debug it?
Mathu
  • 1
  • 3
1 2
3