resubmit_parser.add_argument('-k','--keep-logs',action='store_true',help='Do not clean the log files of the old job before re-submitting.')
resubmit_parser.add_argument('-s','--also-success',action='store_true',help='Re-submit also jobs that have finished successfully.')
resubmit_parser.add_argument('-a','--running-jobs',action='store_true',help='Re-submit even jobs that are running or waiting (use this flag with care).')
resubmit_parser.add_argument('-o','--overwrite-command',nargs=argparse.REMAINDER,help="Overwrite the command line (of a single job) that should be executed (useful to keep job dependencies).")