mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
add help log for clie
This commit is contained in:
parent
88d516c9d0
commit
0719d414e6
2 changed files with 11 additions and 4 deletions
|
|
@ -282,10 +282,10 @@ limit blocks converge to (`--targetgaslimit`) and the price transactions are acc
|
|||
#### CLI
|
||||
Run `./shyft-geth.sh` with one of the following flags:
|
||||
|
||||
- `--setup` - Setups postgres and the shyft chain db
|
||||
- `--start` - Starts geth
|
||||
- `--setup` - Setups postgres and the shyft chain db.
|
||||
- `--start` - Starts geth.
|
||||
- `--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'`
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue