You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using jcommander to parse a command line and have an issue when the comand line looks like this:
myprogramm -x -z
Note that between -x and -y are two spaces (not sure but could be that it needs 3 spaces).
JCommander throws the following error:
"Was passed main parameter '' but no main parameter was defined in your arg class"
So JCommander treats one of the spaces as a parameter. How can i make JCommander to allow arbtriary many spaces between parameters.
This is needed because the command is summond from a jenkins server adding parameters to it which might be empty: myprogramm $X $Y $Z
So if i.e. $Y is empty i run into the mentioned issue.
The text was updated successfully, but these errors were encountered:
I am using jcommander to parse a command line and have an issue when the comand line looks like this:
myprogramm -x -z
Note that between -x and -y are two spaces (not sure but could be that it needs 3 spaces).
JCommander throws the following error:
"Was passed main parameter '' but no main parameter was defined in your arg class"
So JCommander treats one of the spaces as a parameter. How can i make JCommander to allow arbtriary many spaces between parameters.
This is needed because the command is summond from a jenkins server adding parameters to it which might be empty: myprogramm $X $Y $Z
So if i.e. $Y is empty i run into the mentioned issue.
The text was updated successfully, but these errors were encountered: