gendiff/cli.py
"""Parser module - parsing args from user command line"""
import argparse
def parsing_args():
"""Parsing args from user command line"""
parser = argparse.ArgumentParser(
prog='gendiff',
description="Compares two configuration files "
"and shows a difference.")
parser.add_argument('first_file', type=str)
parser.add_argument('second_file', type=str)
parser.add_argument('-f', '--format',
choices=["stylish", "plain", "json"],
default="stylish",
help='set format of output')
args = parser.parse_args()
return args.first_file, args.second_file, args.format