Show version in debug logs.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
Arun Prakash Jana 2016-03-31 00:58:37 +05:30
parent 0d1cf50a61
commit 9a6e6296bd

9
buku
View File

@ -69,6 +69,7 @@ replace = False
encrypt = False
decrypt = False
iterations = int(8)
_VERSION_ = 1.8
@ -101,7 +102,7 @@ def usage():
print(" -z show debug information\n")
print("Keys")
print(" 1-N open Nth search result in browser. Enter exits buku.\n")
print("Version 1.8")
print("Version %.1f" % _VERSION_)
print("Copyright (C) 2015 Arun Prakash Jana <engineerarun@gmail.com>")
print("License: GPLv3")
print("Webpage: https://github.com/jarun/buku")
@ -758,9 +759,6 @@ def main(argv = sys.argv):
for s in sys.stdin.readlines():
pipeargs.extend(s.split())
if debug:
print(pipeargs)
if __name__ == "__main__":
try:
main(sys.argv)
@ -905,6 +903,9 @@ except GetoptError as e:
print("buku:", e)
sys.exit(1)
if debug:
print("Version %.1f" % _VERSION_)
# Update and full DB refresh are mutually exclusive
if update == True and refresh == True:
print("You can either update a single index or refresh full DB at once.\n")