from optparse import OptionParser

class Parameters:
    """Parametry globalne"""

    def __init__(self, **kwargs):
        self.param1 = kwargs.get("param1")
        self.param2 = kwargs.get("param2")
 
def view_parameters(input_parameters):
    print(input_parameters.param1)
    print(input_parameters.param2)
    
parser = OptionParser()
parser.add_option("--p1", dest="param1", help="parametr1")
parser.add_option("--p2", dest="param2", help="parametr2")

(options, args) = parser.parse_args()

input_parameters = Parameters(param1=options.param1,param2=options.param2)

view_parameters(input_parameters)
