diff options
author | Benawi Adha <43810055+wustho@users.noreply.github.com> | 2019-10-24 09:26:10 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 09:26:10 +0700 |
commit | 95be89425964c6aad2502771b42db420ad025305 (patch) | |
tree | f500e06075820a36aac0313e66ce0fdd2e911224 /epy.py | |
parent | 63a6791ee34b24e79a3eba93317c5fc5014c7259 (diff) | |
download | epy-95be89425964c6aad2502771b42db420ad025305.tar.gz |
Update epy.py
Diffstat (limited to 'epy.py')
-rw-r--r-- | epy.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1176,9 +1176,12 @@ def main(): hlp = re.search("(\n|.)*(?=\n\nKey)", hlp).group() print(hlp) sys.exit() + + loadstate() if len({"-v", "--version", "-V"} & set(args)) != 0: - print(__version__) + print(f"* Configuration file loaded:\n {STATEFILE}\n") + print("v" + __version__) print(__license__, "License") print("Copyright (c) 2019", __author__) print(__url__) @@ -1190,8 +1193,6 @@ def main(): else: dump = False - loadstate() - if args == []: file, todel = False, [] for i in STATE: @@ -1238,7 +1239,7 @@ def main(): if val != 0 and len({"-r"} & set(args)) == 0: file = cand else: - print("\nReading history:") + print("Reading history:") dig = len(str(len(STATE.keys())+1)) for n, i in enumerate(STATE.keys()): print(str(n+1).rjust(dig) |