Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 00:01:53 +0000



Post From: command line argument /user:

[2017-09-13 11:00:22]
jizzary - Posts: 177
Hi

I'm looking to have the option to pass a value to my study

The input values are not helpful for that matter. My study needs a value that will direct it to take the correct configuration values from the DB table.

In case I'm running 2 Sierra's processes then I want each to take its own configuration and such command line argument will enable me to control the configuration suit
that the study will take from DB table during the 'SetDefaults' block.

Obviously changing this control value at the code and then recompile/link is not an option.

I see that Sierra supports a set of command line arguments. Can you add another new one called 'user' and push it to the study via the sc structure
(thru a new sc.user_param member). This parameter will become accessible to the study. It is the study's developer responsibility whether to ignore it or to read it (and then use it).

It may be further developed by supporting 2 'user' CLI arguments
/user_study:<study name, param value>

.. and even further by supporting a predefined array of N entries (N will be defined and documented by Sierra)
assuming N=10, then:

(1) /user_study_01:<study-name, param value>
(2) /user_study_02:<study-name, param value>
....
....
(x) /user_study_0x:<study-name, param value>

This will enable the user to configure few studies thru the command line

Will you support this request?

Thanks.
Date Time Of Last Edit: 2017-09-13 11:25:51