parser=optparse.OptionParser(usage="\nTo create a new pipeline:\n %prog -c <pipename> [-p <prefix>]\nTo activate acl and setup a new user:\n %prog -a <username> [-l <access_level>] <sql_file>\nTo suppress an existing user:\n %prog -d <username> <sql_file>\nTo change the data root directory : %prod -r old_dir new_dir <sql_file>")
parser=optparse.OptionParser(usage="\nTo create a new pipeline:\n %prog -c <pipename> [-p <prefix>]\nTo activate acl and setup a new user:\n %prog -a <username> [-l <access_level>] <sql_file>\nTo suppress an existing user:\n %prog -d <username> <sql_file>\nTo change the data root directory :\n %prog -r old_dir new_dir <sql_file>\nTo delete a selection of task per id:\n %prog -t <sql_file> [-f] task_id1 [task_id2 ...]")
parser.add_option('-c','--create-pipeline',
help='Create a new pipeline',)
parser.add_option('-t','--delete-task',
help='Delete the given tasks (and their children if any)',)