From 8533ed9f23f65e00fe3294acd40359af0319069b Mon Sep 17 00:00:00 2001 From: 5bentz <10729484+5bentz@users.noreply.github.com> Date: Fri, 7 Sep 2018 20:55:05 +0200 Subject: [PATCH] Explicitly call `pass show`, fix #27 --- src/passff.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/passff.py b/src/passff.py index 8e09bbb..96fd6e2 100755 --- a/src/passff.py +++ b/src/passff.py @@ -52,17 +52,18 @@ if __name__ == "__main__": std_input = None if len(receivedMessage) == 0: - pass + opt_args = ["show"] elif receivedMessage[0] == "insert": opt_args = ["insert", "-m"] pos_args = [receivedMessage[1]] std_input = receivedMessage[2] elif receivedMessage[0] == "generate": - pos_args = [receivedMessage[1], receivedMessage[2]] opt_args = ["generate"] + pos_args = [receivedMessage[1], receivedMessage[2]] if "-n" in receivedMessage[3:]: opt_args.append("-n") else: + opt_args = ["show"] key = receivedMessage[0] key = "/" + (key[1:] if key[0] == "/" else key) pos_args = [key]