#!/usr/bin/python
import argparse
from benchpress.version import get_paths

def main():
    parser = argparse.ArgumentParser(description="Retrieve misc. info on Benchpress.")

    parser.add_argument('--module', action='store_true', help="Location of the Python module")
    parser.add_argument('--benchmarks', action='store_true', help="Location of benchmarks")
    parser.add_argument('--suites', action='store_true', help="Location of suites")
    parser.add_argument('--hooks', action='store_true', help="Location of hooks")
    parser.add_argument('--bins', action='store_true', help="Location of commands")

    args = parser.parse_args()  # Parse arguments

    paths = get_paths()         # Grab the path configuration
    args_dict = args.__dict__
    for arg in args_dict:
        if args_dict[arg]:
            print paths[arg]
            return

    parser.print_help()

if __name__ == "__main__":
    main()
