#!/usr/bin/env python -W ignore
'''
                 *** The command line interface for pyPcaunzip ***                                                                                                                                  
'''
from argh import *
import argh
import os.path as op
from MDPlus import Universe,Writer
import logging as log
from CoRe import optimizer
from CoRe import cofasu

from CoRe import pypcaunzip


#######################################################
# ENTRY POINT
#######################################################
@dispatch_command
# Mandatory command line arguments:
@arg('-t', '--topology', type=str, help="The topology file. Currently, only PDB files are accepted. This is a mandatory argument.")
@arg('-c', '--compressed', type=str, help="The compressed file given in input. This is a mandatory argument.")


# Optional command line argument:
@arg('-o', '--output', type=str, default=None, help="The output file containing the uncompressed trajectory.")
@arg('-p', '--preload', default=False, help="Should the whole trajectory be preloaded in memory False by default.")
@arg('-v', '--verbosity', default=False, help="Increase output verbosity.")

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