1# Licensed under a 3-clause BSD style license - see LICENSE.rst
2"""
3Script support for validating a VO file.
4"""
5
6
7def main(args=None):
8    from . import table
9    import argparse
10
11    parser = argparse.ArgumentParser(
12        description=("Check a VOTable file for compliance to the "
13                     "VOTable specification"))
14    parser.add_argument(
15        'filename', nargs=1, help='Path to VOTable file to check')
16    args = parser.parse_args(args)
17
18    table.validate(args.filename[0])
19