Skip to content

Commit

Permalink
modify gendiff/scripts/gendiff.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sayat-a committed Jul 30, 2024
1 parent 0d8270f commit 2b4ddad
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions gendiff/scripts/gendiff.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
#!/usr/bin/env python3
import argparse
from gendiff.gen_diff import generate_diff
from gendiff.cli import parse_args


def main():
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)'
)
args = parser.parse_args()
args = parse_args()
print(generate_diff(
args.first_file, args.second_file, formatter=args.format))

Expand Down

0 comments on commit 2b4ddad

Please sign in to comment.