parser.add_argument('-d','--database',metavar='FILE',dest='db',help='replace the default database 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')
lsparser.add_argument('db',metavar='DATABASE',help='replace the default database 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',nargs='?')
lsparser.set_defaults(func=ls)
# subcommand 'refresh'
...
...
@@ -255,55 +254,59 @@ def main():
help='refreshes the current list of executing jobs by querying SGE, updates the databases of currently executing jobs. If you wish, it may optionally save jobs that executed successfuly and/or failed execution')
refparser.add_argument('-s','--no-success-db',default='success.db',action='store_false',dest='successdb',help='if you provide a name of a file, jobs that have succeeded will be saved on this file (defaults to "%(default)s")')
refparser.add_argument('-f','--no-fail-db',dest='faildb',default='failure.db',action='store_false',help='if you provide a name of a file, jobs that have failed will be saved on this file (defaults to "%(default)s")')
refparser.add_argument('db',metavar='DATABASE',help='replace the default database to be refreshed 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',nargs='?')
default=[],help='by default I\'ll explain all jobs, unless you limit giving job identifiers. Identifiers that contain a "." (dot) limits the explanation of a certain job only to a subjob in a parametric array. Everything that comes after the dot is ignored if the job is non-parametric.')
exparser.add_argument('-j','--jobid',metavar='ID',dest='jobid',nargs='*',type=str,default=[],help='by default I\'ll explain all jobs, unless you limit giving job identifiers. Identifiers that contain a "." (dot) limits the explanation of a certain job only to a subjob in a parametric array. Everything that comes after the dot is ignored if the job is non-parametric.')
exparser.add_argument('db',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',nargs='?')
default=[],help='the SGE job identifiers as provided by the list command (first field)')
delparser.add_argument('-j','--jobid',metavar='ID',dest='jobid',nargs='*',type=int,default=[],help='the SGE job identifiers as provided by the list command (first field)')
delparser.add_argument('-r','--remove-logs',dest='also_logs',default=False,action='store_true',help='if set I\'ll also remove the logs if they exist')
delparser.add_argument('db',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',nargs='?')
subparser.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')
default=[],metavar='ID',nargs='*',help='set job dependencies by giving this option an a list of job identifiers separated by spaces')
parser.add_argument('-o','--stdout','--out',metavar='DIR',dest='stdout',help='Set the standard output of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory (defaults to a randomly generated hashed directory structure)')
parser.add_argument('-e','--stderr','--err',metavar='DIR',dest='stderr',help='Set the standard error of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory (defaults to what stdout will be set to)')
subparser.add_argument('-o','--stdout','--out',metavar='DIR',dest='stdout',help='Set the standard output of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory (defaults to a randomly generated hashed directory structure)')
subparser.add_argument('-e','--stderr','--err',metavar='DIR',dest='stderr',help='Set the standard error of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory (defaults to what stdout will be set to)')
dest='array',help='Creates a parametric (array) job. You must specify the starting range "n" (>=1), the stopping (inclusive) range "m" and the step "s". Read the qsub command man page for details')
default=[],help='by default I\'ll re-submit all jobs, unless you limit giving job identifiers')
resubparser.add_argument('db',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',nargs='?')
resubparser.add_argument('-j','--jobid',dest='jobid',metavar='ID',nargs='*',type=int,default=[],help='by default I\'ll re-submit all jobs, unless you limit giving job identifiers')
resubparser.add_argument('-r','--cleanup',dest='cleanup',default=False,action='store_true',help='if set I\'ll also remove the old logs if they exist and the re-submitted job from the re-submission database. Note that cleanup always means to cleanup the entire job entries and files. If the job was a parametric job, all output and error files will also be removed.')
resubparser.add_argument('-x','--dependencies','--deps',dest='deps',type=int,default=[],metavar='ID',nargs='*',help='when you re-submit jobs, dependencies are reset; if you need dependencies, add them using this option')
resubparser.add_argument('-o','--stdout','--out',metavar='DIR',dest='stdout',help='Set the standard output of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory (defaults to a randomly generated hashed directory structure)')