36parser.add_argument("start", metavar="START", type=int, help="Set the start GPS time.")
37parser.add_argument("end", metavar="END", type=int, help="Set the end GPS time.")
38parser.add_argument("ifo", metavar="IFO", nargs="+", help="Set the instruments to process, e.g. H1.")
39parser.add_argument("--category", help="Set the veto category to generate veto segments for.")
40parser.add_argument("--cumulative", action="store_true", help="Set whether veto categories are cumulative, e.g. if CAT2 and cumulative, combine both CAT1 and CAT2 vetoes.")
41parser.add_argument("--no-cert", action="store_true", help="Turn off SSL certificate validation. Default: False.")
42parser.add_argument("-o", "--output", metavar="file", default="vetoes.xml.gz", help="Set the name of the segments file generated. Default: vetoes.xml.gz")
43args = parser.parse_args()
44
45instruments = set([])
46for x in args.ifo:
47# assume all instruments are two characters and split combos like H1L1 if they exist
48 instruments |= set([x[i*2:i*2+2] for i in range(int(len(x) / 2))])