rpcauth: Improve by using argparse and getpass modules

This commit is contained in:
João Barbosa
2018-11-19 15:10:33 +00:00
parent 267793af8b
commit d6cde007db
2 changed files with 28 additions and 22 deletions

View File

@@ -3,12 +3,16 @@ RPC Tools
### [RPCAuth](/share/rpcauth) ###
Create login credentials for a JSON-RPC user.
```
usage: rpcauth.py [-h] username [password]
Usage:
Create login credentials for a JSON-RPC user
./rpcauth.py <username>
positional arguments:
username the username for authentication
password leave empty to generate a random password or specify "-" to
prompt for password
in which case the script will generate a password. To specify a custom password do:
./rpcauth.py <username> <password>
optional arguments:
-h, --help show this help message and exit
```