if [[ "$cur" == -* ]]; then
case $command in
start)
- options='-t --terminal -g --gui -d --show-desktop= -o --hide-desktop -b --batch -l --logger -f --log-file= -r --resources= -x --xterm -m --modules= -e --embedded= -s --standalone= -p --portkill -k --killall -i --interp= -z --splash= -c --catch-exceptions= --print-port --nosave-config --pinter --ns-port-log= --test= --play= --gdb-session --ddd-session --valgrind-session -w --shutdown-servers= --foreground= --wake-up-session --server-launch-mode= --port= --version -h --help --with-mpi-module= --config='
+ options='-t --terminal -g --gui -d --show-desktop= -o --hide-desktop -b --batch -l --logger -f --log-file= --gui-log-file= -r --resources= -x --xterm -m --modules= -e --embedded= -s --standalone= -p --portkill -k --killall -i --interp= -z --splash= -c --catch-exceptions= --print-port --nosave-config --pinter --ns-port-log= --test= --play= --gdb-session --ddd-session --valgrind-session -w --shutdown-servers= --foreground= --wake-up-session --server-launch-mode= --port= --version -h --help --with-mpi-module= --config='
;;
shell)
options='-h --help -p --port= -m --machine= -d --directory= -u --user= --with-mpi-module= --config='
dest="log_file",
help=help_str)
+ # Use gui-log-file for specific user actions in GUI. Default: nothing.
+ help_str = "Log specific user actions in GUI to <gui_log_file>"
+ pars.add_argument("--gui-log-file",
+ metavar="<gui_log_file>",
+ dest="gui_log_file",
+ help=help_str)
+
# Configuration XML file. Default: see defaultUserFile() function
help_str = "Parse application settings from the <file> "
help_str += "instead of default %s" % defaultUserFile()
args["session_gui"] = False
args[batch_nam] = False
args["study_hdf"] = None
+ args["gui_log_file"] = None
if cmd_opts.gui is not None:
args[gui_nam] = cmd_opts.gui
if cmd_opts.batch is not None:
else:
args[file_nam] = [cmd_opts.log_file]
+ # GUI Log file
+ if cmd_opts.gui_log_file is not None:
+ args["gui_log_file"] = cmd_opts.gui_log_file
+
# Naming Service port log file
if cmd_opts.ns_port_log_file is not None:
args["ns_port_log_file"] = cmd_opts.ns_port_log_file
self.SCMD2+=['--pyscript=%s'%(msg)]
pass
pass
+ if self.args['gui_log_file'] is not None:
+ self.SCMD2+=['--gui-log-file=%s'%self.args['gui_log_file']]
+ pass
+ pass
pass
if self.args['noexcepthandler']:
self.SCMD2+=['--no-exception-handler']