438 parser = argparse.ArgumentParser(description=
'CMS conddb command-line tool for serialiation metadata. For general help (manual page), use the help subcommand.')
439 parser.add_argument(
'--db', type=str, help=
'The target database: pro ( for prod ) or dev ( for prep ). default=pro')
440 parser.add_argument(
"--auth",
"-a", type=str, help=
"The path of the authentication file")
441 parser.add_argument(
'--verbose',
'-v', action=
'count', help=
'The verbosity level')
442 parser_subparsers = parser.add_subparsers(title=
'Available subcommands')
443 parser_update_tags = parser_subparsers.add_parser(
'update_tags', description=
'Update the existing tag headers with the boost version')
444 parser_update_tags.add_argument(
'--name',
'-n', type=str, help=
'Name of the specific tag to process (default=None - in this case all of the tags will be processed.')
445 parser_update_tags.add_argument(
'--max',
'-m', type=int, help=
'the maximum number of tags processed',default=100)
446 parser_update_tags.add_argument(
'--all',action=
'store_true', help=
'process all of the tags with boost_version = None')
447 parser_update_tags.add_argument(
'--validate',action=
'store_true', help=
'validate the tag/boost version under processing')
448 parser_update_tags.set_defaults(func=tool.update_tags,accessType=
'w')
449 parser_insert_boost_version = parser_subparsers.add_parser(
'insert', description=
'Insert a new boost version range in the run map')
450 parser_insert_boost_version.add_argument(
'--label',
'-l',type=str, help=
'The boost version label',required=
True)
451 parser_insert_boost_version.add_argument(
'--since',
'-s',type=int, help=
'The since validity (run number)',required=
True)
452 parser_insert_boost_version.set_defaults(func=tool.insert_boost_run,accessType=
'w')
453 parser_list_boost_versions = parser_subparsers.add_parser(
'list', description=
'list the boost versions in the run map')
454 parser_list_boost_versions.set_defaults(func=tool.list_boost_run,accessType=
'r') 455 parser_show_version = parser_subparsers.add_parser('show_tag', description=
'Display the minimum boost version for the specified tag (the value stored, by default)')
456 parser_show_version.add_argument(
'tag_name',help=
'The name of the tag')
457 parser_show_version.add_argument(
'--rebuild',
'-r',action=
'store_true',default=
False,help=
'Re-calculate the minimum boost versio ')
458 parser_show_version.add_argument(
'--full',action=
'store_true',default=
False,help=
'Recalulate the minimum boost version, listing the versions in the iov sequence')
459 parser_show_version.set_defaults(func=tool.show_tag_boost_version,accessType=
'r') 460 args = parser.parse_args() 463 tool.logger.setLevel(logging.DEBUG)
469 sys.exit( args.func())
470 except Exception
as e: