add help log for clie

This commit is contained in:
greg 2018-06-03 18:40:20 -04:00
parent 88d516c9d0
commit 0719d414e6
2 changed files with 11 additions and 4 deletions

View file

@ -282,10 +282,10 @@ limit blocks converge to (`--targetgaslimit`) and the price transactions are acc
#### CLI #### CLI
Run `./shyft-geth.sh` with one of the following flags: Run `./shyft-geth.sh` with one of the following flags:
- `--setup` - Setups postgres and the shyft chain db - `--setup` - Setups postgres and the shyft chain db.
- `--start` - Starts geth - `--start` - Starts geth.
- `--reset` - Drops postgress and chain db, and reinstantiates both. - `--reset` - Drops postgress and chain db, and reinstantiates both.
- `--js [web3 filename]` - Executes web3 calls with a passed file name example: filename = sendTransactions.js `--js sendTransactions` - `--js [web3 filename]` - Executes web3 calls with a passed file name. If the file name is `sendTransactions.js`, `./shyft-geth.sh --js sendTransactions`.
Note: An alias can be set for convenience `alias shyft-geth='<path/to/shyft/geth>/shyft_go-ethereum/shyft-geth.sh'` Note: An alias can be set for convenience `alias shyft-geth='<path/to/shyft/geth>/shyft_go-ethereum/shyft-geth.sh'`

View file

@ -1,7 +1,14 @@
#!/bin/bash #!/bin/bash
if [[ $# -lt 1 ]]; then if [[ $# -lt 1 ]]; then
echo Shyft-Geth: No flags detected, refer to readme for available commands. echo
echo Shyft-Geth: No flags detected, see help:
echo
echo " --setup: Setups postgres and the shyft chain db."
echo " --start: Starts geth."
echo " --reset: Drops postgress and chain db, and reinstantiates both."
echo " --js [filename]: Executes web3 calls with a passed file name. If the file name is sendTransactions.js, $ ./shyft-geth.sh --js sendTransactions"
echo
exit 1 exit 1
fi fi