Menu

#120 "--" to precede program command line options

closed
nobody
Misc (15)
5
2010-08-12
2010-06-17
No

We would like to request a more convenient way to pass command line arguments to our wrapped program.
Currently this has to be done with "program.exe -wrapper.app.parameter.N=-option", which is quite some typing. And as there may already be a number of 'fixed' command line arguments in the wrapper.conf, the value of N to choose is not trivial. Of course since the parameter-gap option was introduced we can use 99 there, but it is still not really convenient.
The X server supports a '--' (double dash) parameter which separates the X command line options from the options passed to the "inner" application. Would it be possible to introduce this or a similar parameter to the wrapper as well, so that we can use "program.exe -- -option"?

Discussion

  • Christian Mueller

    Sander,

    I'm sorry for the delay on replying on this.

    We are right now in the release process for 3.5.0, which will be released fairly soon, therefore the code has been frozen regarding adding new features.
    I can see your point in here and think your suggestion is quite a good idea.
    I will have a talk with the other team members and discuss about your request.

    Sincerely,
    Christian

     
  • Christian Mueller

    Sander,

    I'm right now implementing a way to pass the command line to the java application.
    Right now it would work like this:
    arguments after the -- on the commandline would be attached after the wrapper.app.parameter.N parameters.
    What do you think about this? Is this acceptable for you or would you like to have a different logic?

    Cheers,
    Christian

     
  • Sander Koning

    Sander Koning - 2010-07-12

    Christian,

    That would be a perfectly acceptable way of working. I guess it's the most logical way as well, as one wouldn't want to disturb the order of the app.parameter options already present in the wrapper.conf file when adding a one-time parameter at the command line.

    Thanks for the heads-up.

     
  • Christian Mueller

    Sander,

    Thank you for your reply.
    Yes, I was also thinking that would be the most reasonable usage.
    the "--" parameter will be in the next release.
    We haven't fixed a date yet, but I will keep you updated as soon as we have decided the next release date.

    Cheers,
    christian

     
  • Christian Mueller

    Sander,

    We have released wrapper version 3.5.2 today, which also contains the feature requested here.
    I would appreciate to hear back from you on how it is working out for you.

    Cheers,
    Christian

     
  • Christian Mueller

    • status: open --> closed
     

Log in to post a comment.