mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
integration: make --datadir and --chain required #5041
This commit is contained in:
parent
778792e20e
commit
60ff998133
@ -99,6 +99,7 @@ func withDataDir2(cmd *cobra.Command) {
|
||||
|
||||
func withDataDir(cmd *cobra.Command) {
|
||||
cmd.Flags().StringVar(&datadirCli, "datadir", paths.DefaultDataDir(), "data directory for temporary ELT files")
|
||||
must(cmd.MarkFlagRequired("datadir"))
|
||||
must(cmd.MarkFlagDirname("datadir"))
|
||||
|
||||
cmd.Flags().StringVar(&chaindata, "chaindata", "", "path to the db")
|
||||
@ -126,6 +127,7 @@ func withTxTrace(cmd *cobra.Command) {
|
||||
|
||||
func withChain(cmd *cobra.Command) {
|
||||
cmd.Flags().StringVar(&chain, "chain", "mainnet", "pick a chain to assume (mainnet, ropsten, etc.)")
|
||||
must(cmd.MarkFlagRequired("chain"))
|
||||
}
|
||||
|
||||
func withHeimdall(cmd *cobra.Command) {
|
||||
|
Loading…
Reference in New Issue
Block a user