resubmit_parser.add_argument('-d','--db','--database',metavar='DATABASE',help='replace the default database to be used by one provided by you; this option is only required if you are running outside the directory where you originally submitted the jobs from or if you have altered manually the location of the JobManager database')
resubmit_parser.add_argument('-j','--job-ids',metavar='ID',nargs='*',type=int,help='List only the jobs with the given ids (by default, all jobs are listed)')
resubmit_parser.add_argument('-c','--clean',action='store_true',help='Clean the log files of the old job before re-submitting')
resubmit_parser.add_argument('-f','--failed-only',action='store_true',help='Re-submit only jobs that have failed')
resubmit_parser.add_argument('-a','--running-jobs',action='store_true',help='Re-submit even jobs that are running or waiting')