Skip to content

Commit 75aae54

Browse files
committed
fix: 🐛 with_license option not work in encrypt command
Closes: #30
1 parent 4b87b3f commit 75aae54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyencrypt/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def encrypt_command(ctx, pathname, replace, key, with_license, mac, ipv4, before
187187
raise Exception(f'{path} is not a valid path.')
188188

189189
cipher_key, d, n = encrypt_key(key.encode()) # 需要放进导入器中
190-
generate_so_file(cipher_key, d, n)
190+
generate_so_file(cipher_key, d, n, license=with_license)
191191
if with_license is True:
192192
generate_license_file(key, Path(os.getcwd()), after, before, mac, ipv4)
193193
click.echo(FINISH_GENERATE_LICENSE_MSG)

0 commit comments

Comments
 (0)