diff --git a/cmd/integration/commands/flags.go b/cmd/integration/commands/flags.go index 61113e82e..183ace2a2 100644 --- a/cmd/integration/commands/flags.go +++ b/cmd/integration/commands/flags.go @@ -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) {