"ALL the launched commands.")
parser.add_option('c', 'clean', 'int', 'clean', "Optional: Erase the n most "
"ancient log files.")
+parser.add_option('n', 'no_browser', 'boolean', 'no_browser', "Optional: Do not"
+ " launch the browser at the end of the command. Only update "
+ "the hat file.")
def get_last_log_file(logDir, notShownCommands):
'''Used in case of last option. Get the last log command file path.
logger.write("\n", 3)
# open the hat xml in the user editor
- logger.write(_("\nOpening the log file\n"), 3)
- src.system.show_in_editor(runner.cfg.USER.browser, xmlHatFilePath, logger)
+ if not options.no_browser:
+ logger.write(_("\nOpening the log file\n"), 3)
+ src.system.show_in_editor(runner.cfg.USER.browser, xmlHatFilePath, logger)
return 0
\ No newline at end of file
opts2=$(echo --list --value --edit --info $opts2)
;;
log)
- opts2=$(echo --clean --full --last --terminal $opts2)
+ opts2=$(echo --clean --full --last --terminal --no_browser $opts2)
;;
jobs)
opts2=$(echo --name --only_jobs --list --completion --test_connection --input_boards --publish $opts2)
return 0
;;
log)
- opts="--clean --last --terminal --last"
+ opts="--clean --last --terminal --last --no_browser"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;