list_parser=cmdparser.add_parser('list',aliases=['ls'],formatter_class=formatter,help='Lists jobs stored in the database. Use the -vv option to get a long listing.')
list_parser.add_argument('-j','--job-ids',metavar='ID',nargs='+',help='List only the jobs with the given ids (by default, all jobs are listed)')
list_parser.add_argument('-n','--names',metavar='NAME',nargs='+',help='List only the jobs with the given names (by default, all jobs are listed)')
list_parser.add_argument('-a','--print-array-jobs',action='store_true',help='Also list the array ids.')
list_parser.add_argument('-l','--long',action='store_true',help='Prints additional information about the submitted job.')
list_parser.add_argument('-x','--print-dependencies',action='store_true',help='Print the dependencies of the jobs as well.')