- o_port = optparse.Option("--port",
- metavar="<port>",
- type="int",
- action="store",
- dest="use_port",
- help=help_str)
-
- # SIMAN launch mode
- help_str = "Special mode for interacting with SIMAN."
- o_siman = optparse.Option("--siman",
- action="store_true",
- dest="siman",
- help=help_str)
-
- # SIMAN study
- help_str = "SIMAN study identifier."
- o_siman_study = optparse.Option("--siman-study",
- metavar="<id>",
- type="string",
- action="store",
- dest="siman_study",
- help=help_str)
-
- # SIMAN scenario
- help_str = "SIMAN scenario identifier."
- o_siman_scenario = optparse.Option("--siman-scenario",
- metavar="<id>",
- type="string",
- action="store",
- dest="siman_scenario",
- help=help_str)
-
- # SIMAN user
- help_str = "SIMAN user identifier."
- o_siman_user = optparse.Option("--siman-user",
- metavar="<id>",
- type="string",
- action="store",
- dest="siman_user",
- help=help_str)
-
- # All options
- opt_list = [o_t,o_g, # GUI/Terminal
- o_d,o_o, # Desktop
- o_b, # Batch
- o_l,o_f, # Use logger or log-file
- o_r, # Configuration XML file
- o_x, # xterm
- o_m, # Modules
- o_e, # Embedded servers
- o_s, # Standalone servers
- o_p, # Kill with port
- o_k, # Kill all
- o_i, # Additional python interpreters
- o_z, # Splash
- o_c, # Catch exceptions
- o_a, # Print free port and exit
- o_n, # --nosave-config
- o_pi, # Interactive python console
- o_nspl,
- o_test, # Write/read test script file with help of TestRecorder
- o_play, # Reproducing test script with help of TestRecorder
- o_gdb,
- o_ddd,
- o_valgrind,
- o_shutdown,
- o_foreground,
- o_wake_up,
- o_slm, # Server launch mode
- o_port, # Use port
- o_siman, # Siman launch mode
- o_siman_study, # Siman study
- o_siman_scenario,# Siman scenario
- o_siman_user, # Siman user
- ]
-
- #std_options = ["gui", "desktop", "log_file", "resources",
- # "xterm", "modules", "embedded", "standalone",
- # "portkill", "killall", "interp", "splash",
- # "catch_exceptions", "print_port", "save_config", "ns_port_log_file"]
-
- opt_list += theAdditionalOptions
-
- a_usage = """%prog [options] [STUDY_FILE] [PYTHON_FILE [args] [PYTHON_FILE [args]...]]
-Python file arguments, if any, must be comma-separated (without blank characters) and prefixed by "args:" (without quotes), e.g. myscript.py args:arg1,arg2=val,...
-"""
- version_str = "Salome %s" % version()
- pars = optparse.OptionParser(usage=a_usage, version=version_str, option_list=opt_list)