From c619ae91f63cfe46f941c77c69443b4f9e675d5b Mon Sep 17 00:00:00 2001 From: Vishnu KS Date: Sat, 12 Oct 2019 16:57:10 +0530 Subject: [PATCH] utils: Rename file_type to input_file_type. --- utils/housekeep.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/housekeep.py b/utils/housekeep.py index d914591..50de7d3 100644 --- a/utils/housekeep.py +++ b/utils/housekeep.py @@ -13,7 +13,7 @@ try: '--out_file', help='File to save to, defaults to ./../README-NEW.MD') parser.add_argument( - '--file_type', + '--input_file_type', choices=['old', 'new'], help='old if links are displayed in a list, new if in a table') parser.add_argument( @@ -40,11 +40,11 @@ def main(): in_file = flags.in_file or './../README.MD' out_file = flags.out_file or './../README-new.md' - file_type = flags.file_type or 'new' + input_file_type = flags.input_file_type or 'new' sort_by = flags.sort_by or 'rating' reverse = True if sort_by == 'rating' else False - library = load(in_file, file_type) + library = load(in_file, input_file_type) get_goodread_info(library) library = sort(library, sort_by, reverse) render(in_file, out_file, library)