#!/usr/bin/env python -W ignore
'''
                 *** The command line interface for pyPczclust ***                                                                                                                                  
'''

import argh
import argparse
from pcazip import pypczclust

########################################################
#                      ENTRY POINT                     #
########################################################
@argh.dispatch_command

@argh.arg('-v','--verbosity', nargs='?', help="Increase output verbosity.")
@argh.arg('-d','--dims', type=int, default=3, help='number of dimensions in the clustering histogram')
@argh.arg('-b','--bins', type=int, default=10, help='number of bins in each dimension')
@argh.arg('-i','--pczfile', type=str, help='Input pczfile to cluster.')
@argh.arg('-o','--outfile', type=str, help='Input pczfile to cluster.')

def main(**kwargs):
    class Struct(object):
        def __init__(self, entries):
            self.__dict__.update(entries)
    args = Struct(kwargs)
    
    pypczclust.pczclust(args)
