aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorBenawi Adha <43810055+wustho@users.noreply.github.com>2019-10-24 09:26:10 +0700
committerGitHub <noreply@github.com>2019-10-24 09:26:10 +0700
commit95be89425964c6aad2502771b42db420ad025305 (patch)
treef500e06075820a36aac0313e66ce0fdd2e911224 /epy.py
parent63a6791ee34b24e79a3eba93317c5fc5014c7259 (diff)
downloadepy-95be89425964c6aad2502771b42db420ad025305.tar.gz
Update epy.py
Diffstat (limited to 'epy.py')
-rw-r--r--epy.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/epy.py b/epy.py
index d1a8e76..84e5b9a 100644
--- a/epy.py
+++ b/epy.py
@@ -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)