Skip to content
Advertisement

Tag: jcommander

Pass an argument that starts with ‘@’ to jcommander

I am using JCommander(version 1.32) to parse command line arguments passed to a java application(let’s call it app). The problem I have is that one of the arguments I need to pass begins with @ and as can be seen here there is a special syntax for @. Thus calling the app with app @arg fails with Could not read

Advertisement