From 8ba1c1a2ccc9bed6a2adc724bbf0fff086afaece Mon Sep 17 00:00:00 2001 From: Mi Klo Date: Sat, 5 Jun 2021 18:40:24 +0000 Subject: [PATCH] initial version --- dice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dice.py b/dice.py index be638ea..9cc1a7d 100644 --- a/dice.py +++ b/dice.py @@ -40,6 +40,7 @@ def calc_hash(key1,key2): # print( s ) print( w ) + if len(sys.argv) > 1: key1 = sys.argv[1] if len(sys.argv) > 2: @@ -57,4 +58,5 @@ else: if len(key1) > 0 or len(key2) > 0: calc_hash(key1, key2) else: - break; \ No newline at end of file + break; +