Added optional seed-delta parameter

This commit is contained in:
Sergio Mena
2022-06-14 14:57:05 -04:00
committed by William Banfield
parent d02f58e191
commit 2e2880ee6e
+6 -3
View File
@@ -24,9 +24,10 @@ func main() {
// CLI is the Cobra-based command-line interface.
type CLI struct {
root *cobra.Command
testnet *e2e.Testnet
preserve bool
root *cobra.Command
testnet *e2e.Testnet
preserve bool
seedDelta int
}
// NewCLI sets up the CLI.
@@ -136,6 +137,8 @@ func NewCLI() *CLI {
cli.root.PersistentFlags().StringP("file", "f", "", "Testnet TOML manifest")
_ = cli.root.MarkPersistentFlagRequired("file")
cli.root.PersistentFlags().IntP("seed-delta", "s", 0, "Interger to be added to the initial hard-coded seed")
cli.root.PersistentFlags().IntP("seed-delta", "s", 0, "Interger to be added to the initial hard-coded seed")
cli.root.Flags().BoolVarP(&cli.preserve, "preserve", "p", false,
"Preserves the running of the test net after tests are completed")