From 9fb3f39f67436829d7abc076134e3aca4501cec8 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Sat, 28 Aug 2021 17:06:29 +0200 Subject: [PATCH] Remove unnedeed options --- adl.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/adl.py b/adl.py index 5019def..f59dec4 100644 --- a/adl.py +++ b/adl.py @@ -18,8 +18,6 @@ ap.add_argument("-d", "--download", required=False, type=bool, nargs='?', const= help="Download instead of streaming") ap.add_argument("-v", "--version", required=False, nargs='?', const=True, help="Display version and exit") -ap.add_argument("-r", "--retrieve", required=False, nargs='?', const=True, - help="Don't retrieve trackma list on startup") args = vars(ap.parse_args()) @@ -72,12 +70,6 @@ if args["version"]: print("Py-adl version 0.2") sys.exit() -# don't retrieve on startup -if args["retrieve"]: - retrieve = False -else: - retrieve = True # retrieve new list - # required files dn = os.path.dirname(os.path.realpath(__file__)) # get current directory of the script good_title = open(dn + "/good_title.txt").readlines() # the list of good titles @@ -85,6 +77,7 @@ problematic_titles = open(dn + "/problem_title.txt").readlines() # list of probl fzf_file = open(dn + "/fzf.txt", "w+") # temp file for fzf fzf_file_path = dn +"/fzf.txt" # path of the temp file print_fzf_path = "python " + dn + "/print_fzf.py" # print the fzf file +retrieve = True # setup env variables for better readability of outputs os.environ['LINES'] = '25'