We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56a7085 commit e5053fbCopy full SHA for e5053fb
file-operations/file-encrypt.py renamed to file-operations/file_encrypt.py
@@ -4,11 +4,13 @@
4
5
parser = argparse.ArgumentParser(description='Takes a file as argument and encrypts it')
6
7
-parser.add_argument('file', type=str)
8
-parser.add_argument('key', type=int)
+parser.add_argument('file', metavar='file to be encrypted', type=str)
+parser.add_argument('key', metavar='key to encrypt',type=int)
9
10
args = parser.parse_args()
11
12
file_content = get_file_content(args.file)
13
14
-store_file_content(encrypt(file_content, args.key), 'encriptado.txt')
+new_file = store_file_content(encrypt(file_content, args.key), 'encriptado.txt')
15
+
16
+print(f'content stored on {new_file}')
0 commit comments