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=optparse.OptionParser(usage="""
To create a new pipeline:
%prog -c <pipename> [-p <prefix>]
To activate acl and setup a new user:
%prog -a <username> [-l <access_level>] <sql_file>
To suppress an existing user:
%prog -d <username> <sql_file>
To change the data root directory:
%prog -r old_dir new_dir <sql_file>
To delete a selection of task per id:
%prog -t <sql_file> [-f] task_id1 [task_id2 ...]
To tag the last computed segment:
%prog --tag-last <sql_file> tag
""")
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)',)