Skip to content

Commit 1e11c0d

Browse files
committed
fix: 🐛 generate command help
1 parent cb73814 commit 1e11c0d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ pip install git+https://github.com/ZhaoQi99/pyencrypt-pye.git
2121
✨🍰✨
2222
```
2323
## Usage
24+
25+
```shell
26+
Usage: pyencrypt [OPTIONS] COMMAND [ARGS]...
27+
28+
Options:
29+
--version Show the version and exit.
30+
-h, --help Show this message and exit.
31+
32+
Commands:
33+
decrypt Decrypt encrypted pye file
34+
encrypt Encrypt your python code
35+
generate Generate loader file using specified key
36+
```
37+
2438
### Encrypt
2539
```shell
2640
~$ pyencrypt encrypt -h
@@ -46,6 +60,19 @@ Options:
4660
-k, --key TEXT Your encryption key. [required]
4761
-h, --help Show this message and exit.
4862
```
63+
### Generate
64+
65+
```shell
66+
~$ pyencrypt generate -h
67+
Usage: pyencrypt generate [OPTIONS]
68+
69+
Generate loader file using specified key
70+
71+
Options:
72+
-k, --key TEXT Your encryption key. [required]
73+
-h, --help Show this message and exit.
74+
```
75+
4976
## Example
5077
### Encrypt
5178
```shell

pyencrypt/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def decrypt_command(pathname, key):
153153
required=True,
154154
help='Your encryption key.',
155155
type=click.STRING)
156+
@click.help_option('-h', '--help')
156157
@click.pass_context
157158
def generate_loader(ctx, key):
158159
"""Generate loader file using specified key"""

0 commit comments

Comments
 (0)