Skip to content

Commit e5053fb

Browse files
committed
Rename file encrypt file
1 parent 56a7085 commit e5053fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

file-operations/file-encrypt.py renamed to file-operations/file_encrypt.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
parser = argparse.ArgumentParser(description='Takes a file as argument and encrypts it')
66

7-
parser.add_argument('file', type=str)
8-
parser.add_argument('key', type=int)
7+
parser.add_argument('file', metavar='file to be encrypted', type=str)
8+
parser.add_argument('key', metavar='key to encrypt',type=int)
99

1010
args = parser.parse_args()
1111

1212
file_content = get_file_content(args.file)
1313

14-
store_file_content(encrypt(file_content, args.key), 'encriptado.txt')
14+
new_file = store_file_content(encrypt(file_content, args.key), 'encriptado.txt')
15+
16+
print(f'content stored on {new_file}')

0 commit comments

Comments
 (0)