#!/usr/bin/env python
# -*- coding: utf-8 -*-

import argparse
import yaml

class argument():

    def __init__( self ):
        self.parser = argparse.ArgumentParser()
        
        self.parser.add_argument( '--mode', help='mode' )
        self.parser.add_argument( '--file', help='file name' )
        self.parser.add_argument( '--yaml', help='yaml file name' )
        
    def getyaml( self ):
        with open( self.parser.parse_args().yaml ) as file:
            self.yaml = yaml.safe_load( file )
    
    def parse( self ):
        return self.parser.parse_args()
