mirror of https://github.com/E-Almqvist/cipher
parent
832f49c37d
commit
c51b4c30ed
Binary file not shown.
Binary file not shown.
@ -0,0 +1,10 @@ |
|||||||
|
import sys |
||||||
|
|
||||||
|
def getValueOfKey(key): # get the value of an input key, example: -c {VALUE} |
||||||
|
for i in sys.argv: |
||||||
|
if( i == key ): |
||||||
|
return sys.argv[sys.argv.index(key) + 1] |
||||||
|
return -1 # if no value was found return -1 |
||||||
|
|
||||||
|
def inputHasKeys(keyList): |
||||||
|
return all(key in sys.argv for key in keyList) |
Loading…
Reference in new issue