Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have

@Parameter(names = "-rule", description = "rule")
private List<String> rules = new ArrayList<String>();

but when I pass a value with a space in it jcommander does not like it

./test -rule "some test"


com.beust.jcommander.ParameterException: Was passed main parameter 'test' but no main parameter was defined

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

knowtheorycommented, Nov 9, 2012

Yep this was entirely my bad, thanks @cbeust (i should have been quoting my $@ in my shell script c.f. )

riasatcommented, Feb 25, 2015
Read more comments on GitHub >

github_iconTop Results From Across the Web

Value Spaces Definition - Bundl
A solid foundation for your future ventures. ... Knowing your value space will enable you to build ventures that deliver real revenue. We'll...
Read more >
5 How to deal with empty spaces - Bookdown
5.1 Empty spaces in variable names. After reading data into R, we should have the habit of using names() (or colnames()) to have...
Read more >
Python | Same and Different value space - GeeksforGeeks
In Python, we have same pool for similar values, even if they share different variables. This has many advantages, that it saves a...
Read more >
Identifying values that have a space - sql - Stack Overflow
I see 3 records always When I execute the below query, with no matter how many extra trailing spaces. SELECT * FROM AB_MASTER_DATA...
Read more >
Solved: How to add leading space in values of a variable?
I want to know how to add leading spaces in SAS for values of a character variable. Kindly note that I do not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found