"""Class for command line arguments."""
import argparse


class parseOptions():
    """Parse arguments."""

    def __init__(self):
        self.parser = argparse.ArgumentParser(description='''CSV extraction
                                                             conversion''')

    def arguments(self):
        """Command line options."""
        self.parser.add_argument(
                '--csv',
                dest="CSV",
                action="store",
                default='ais.csv',
                help="""
                Specify the csv file that will be used.
                """,
                required=True,
            )
        self.parser.add_argument(
                '--output-dir',
                dest="OUTPUT",
                action="store",
                default="/AIS/",
                help="""
                Specify the directory to ouput files in.
                """,
                required=True,
            )
        self.parser.add_argument(
                '--log-file',
                dest="LOG",
                action="store",
                default="ais_parse.log",
                help="""
                Specify log file.
                Defaults to ais_pars.log in local directory.
                """,
                required=False,
            )
        self.parser.add_argument(
                '--yaml-file',
                dest="YAML",
                action="store",
                default="test.yaml",
                help="""
                Specify yaml file.
                Defaults to test.yaml in local directory.
                """,
                required=True,
            )
        self.parser.add_argument(
                '--date',
                dest="DATE",
                action="store",
                default="20190701",
                help="""
                Specify date of the file
                Defaults to 20190701.
                """,
                required=False,
            )
        args = self.parser.parse_args()
        return args
