Skip to content

Commit

Permalink
fix: 🐛 confirm option help text and README
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoQi99 committed Nov 24, 2021
1 parent 421618b commit cb73814
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Options:
-i, --in-place make changes to files in place
-k, --key TEXT Your encryption key.If you don‘t specify key, pyencrypt will
generate encryption key randomly.
-y, --yes yes
--yes Automatically answer yes for confirm questions.
-h, --help Show this message and exit.
```
### Decrypt
Expand All @@ -57,6 +57,10 @@ Options:
```shell
~$ pyencrypt decrypt -k xxx test.pye
```
### Generate
```shell
~$ pyencrypt generate -k xxx
```

### Entry File
```python
Expand Down
2 changes: 1 addition & 1 deletion pyencrypt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def cli():
type=click.STRING)
@click.confirmation_option(
prompt='Are you sure you want to encrypt your python file?',
help='Confirm the action without prompting')
help='Automatically answer yes for confirm questions.')
@click.help_option('-h', '--help')
@click.pass_context
def encrypt_command(ctx, pathname, delete, key):
Expand Down

0 comments on commit cb73814

Please sign in to comment.