Either encrypt or decrypt supported in one shot.

Fix typo.
This commit is contained in:
Arun Prakash Jana 2017-02-16 21:22:19 +05:30
parent 883cbf8ec2
commit d26e2f5571
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -2562,8 +2562,7 @@ POSITIONAL ARGUMENTS:
# Handle encrypt/decrypt options at top priority
if args.lock is not None:
BukuCrypt.encrypt_file(args.lock)
if args.unlock is not None:
elif args.unlock is not None:
BukuCrypt.decrypt_file(args.unlock)
# Set up title
@ -2659,7 +2658,7 @@ POSITIONAL ARGUMENTS:
url = args.add[0]
if args.write and not is_int(arg.write):
if args.write and not is_int(args.write):
result = edit_rec(args.write, url, title_in, tags, desc_in)
if result is not None:
url, title_in, tags, desc_in = result