Skip to content

Commit

Permalink
add gendiff/cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sayat-a committed Jul 30, 2024
1 parent 712e3c5 commit 0d8270f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gendiff/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import argparse


def parse_args():
parser = argparse.ArgumentParser(
description='Compares two configuration file and shows a difference.')
parser.add_argument('first_file')
parser.add_argument('second_file')
parser.add_argument(
'-f', '--format',
default='stylish',
choices=['stylish', 'plain', 'json'],
help='set format of output (default: stylish)'
)
return parser.parse_args()

0 comments on commit 0d8270f

Please sign in to comment.