Home Help Center

Setting Properties on the command line

EwgenijkkgEwgenijkkg Member Ewgenij SokolovskiOrganization: RWTHProject: Rove ✭✭
In the manual I read on the page 722 (Ice-3.1.1.pdf):

Any command line option that begins with -- and is followed by one of the
reserved prefixes (see page 720) is read and converted to a property setting when
you create a communicator. Property settings on the command line override
settings in a configuration file.

Its a very nice feature:) Now I would like to have the same for the properties defined by me:D Any possibility to achieve that?

I tried to give the reserved prefixes to my properties. That worked. They were automatically recognized and the values in the configuration file were overwritten by the values on the command line. But in the manual is written that I am not allowed to use reserved prefixes. And if I do, I get additionally warning messages when I start the program.

But is there another possibility?


  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Please see the chapter Using Properties Programmatically.
  • EwgenijkkgEwgenijkkg Member Ewgenij SokolovskiOrganization: RWTHProject: Rove ✭✭

    Ah, found the special functions for that purpose there. Thanks!
Sign In or Register to comment.