Update cc/sc-encode
Some checks failed
Check syntax / check (push) Has been cancelled

This commit is contained in:
Nova Cat 2024-12-24 16:10:16 -08:00
parent 00e29ab908
commit cdfd6b9d7b

View file

@ -1,4 +1,7 @@
#!/usr/bin/python3
import sweecrypt
from sys import argv
print(sweecrypt.encrypt(" ".join(argv[3:])))
if argv[3][:2] == "-s":
print(sweecrypt.encrypt(" ".join(argv[4:]), argv[3][3:]))
else:
print(sweecrypt.encrypt(" ".join(argv[3:])))