ceph/scripts/ls.py
Zack Cerza 5d192ed46c Make the archive dir a positional argument
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-07 14:12:38 -06:00

23 lines
513 B
Python

import argparse
import teuthology.ls
def main():
teuthology.ls.main(parse_args())
def parse_args():
parser = argparse.ArgumentParser(description='List teuthology job results')
parser.add_argument(
'archive_dir',
metavar='DIR',
default='.',
help='path under which to archive results',
)
parser.add_argument(
'-v', '--verbose',
action='store_true', default=False,
help='show reasons tests failed',
)
return parser.parse_args()