@@ -2307,9 +2307,9 @@ func (o *GetEvent) AddFlags(cmd *cobra.Command) {
23072307 f .Uint64VarP (& o .ToBlock , ArgToBlock , "t" , 0 , "end of the range of blocks to retrieve" )
23082308 f .Uint64VarP (& o .FilterSize , ArgFilterSize , "i" , 1000 , "batch size for individual filter queries" )
23092309 f .BoolVarP (& o .Insecure , ArgInsecure , "" , false , "skip TLS certificate verification" )
2310- fatalIfError ( cmd .MarkFlagRequired (ArgFromBlock ) )
2311- fatalIfError ( cmd .MarkFlagRequired (ArgToBlock ) )
2312- fatalIfError ( cmd .MarkFlagRequired (ArgRPCURL ) )
2310+ flag .MarkFlagRequired (cmd , ArgFromBlock )
2311+ flag .MarkFlagRequired (cmd , ArgToBlock )
2312+ flag .MarkFlagRequired (cmd , ArgRPCURL )
23132313}
23142314
23152315type GetSmcOptions struct {
@@ -2547,7 +2547,7 @@ or if it's actually an intermediate hash.`,
25472547 fBridgeAndClaim .StringVar (& inputUlxlyArgs .gasPrice , ArgGasPrice , "" , "gas price to use" )
25482548 fBridgeAndClaim .BoolVar (& inputUlxlyArgs .dryRun , ArgDryRun , false , "do all of the transaction steps but do not send the transaction" )
25492549 fBridgeAndClaim .BoolVar (& inputUlxlyArgs .insecure , ArgInsecure , false , "skip TLS certificate verification" )
2550- fatalIfError ( ulxlyBridgeAndClaimCmd .MarkPersistentFlagRequired (ArgBridgeAddress ) )
2550+ flag .MarkPersistentFlagRequired (ulxlyBridgeAndClaimCmd , ArgBridgeAddress )
25512551
25522552 // bridge specific args
25532553 fBridge := ulxlyBridgeCmd .PersistentFlags ()
@@ -2557,7 +2557,7 @@ or if it's actually an intermediate hash.`,
25572557 fBridge .StringVar (& inputUlxlyArgs .tokenAddress , ArgTokenAddress , "0x0000000000000000000000000000000000000000" , "address of ERC20 token to use" )
25582558 fBridge .StringVar (& inputUlxlyArgs .callData , ArgCallData , "0x" , "call data to be passed directly with bridge-message or as an ERC20 Permit" )
25592559 fBridge .StringVar (& inputUlxlyArgs .callDataFile , ArgCallDataFile , "" , "a file containing hex encoded call data" )
2560- fatalIfError ( ulxlyBridgeCmd .MarkPersistentFlagRequired (ArgDestNetwork ) )
2560+ flag .MarkPersistentFlagRequired (ulxlyBridgeCmd , ArgDestNetwork )
25612561
25622562 // Claim specific args
25632563 fClaim := ulxlyClaimCmd .PersistentFlags ()
@@ -2566,9 +2566,9 @@ or if it's actually an intermediate hash.`,
25662566 fClaim .StringVar (& inputUlxlyArgs .bridgeServiceURL , ArgBridgeServiceURL , "" , "URL of the bridge service" )
25672567 fClaim .StringVar (& inputUlxlyArgs .globalIndex , ArgGlobalIndex , "" , "an override of the global index value" )
25682568 fClaim .DurationVar (& inputUlxlyArgs .wait , ArgWait , time .Duration (0 ), "retry claiming until deposit is ready, up to specified duration (available for claim asset and claim message)" )
2569- fatalIfError ( ulxlyClaimCmd .MarkPersistentFlagRequired (ArgDepositCount ) )
2570- fatalIfError ( ulxlyClaimCmd .MarkPersistentFlagRequired (ArgDepositNetwork ) )
2571- fatalIfError ( ulxlyClaimCmd .MarkPersistentFlagRequired (ArgBridgeServiceURL ) )
2569+ flag .MarkPersistentFlagRequired (ulxlyClaimCmd , ArgDepositCount )
2570+ flag .MarkPersistentFlagRequired (ulxlyClaimCmd , ArgDepositNetwork )
2571+ flag .MarkPersistentFlagRequired (ulxlyClaimCmd , ArgBridgeServiceURL )
25722572
25732573 // Claim Everything Helper Command
25742574 fClaimEverything := claimEverythingCommand .Flags ()
@@ -2577,7 +2577,7 @@ or if it's actually an intermediate hash.`,
25772577 fClaimEverything .IntVar (& inputUlxlyArgs .bridgeOffset , ArgBridgeOffset , 0 , "offset to specify for pagination of underlying bridge service deposits" )
25782578 fClaimEverything .UintVar (& inputUlxlyArgs .concurrency , ArgConcurrency , 1 , "worker pool size for claims" )
25792579
2580- fatalIfError ( claimEverythingCommand .MarkFlagRequired (ArgBridgeMappings ) )
2580+ flag .MarkFlagRequired (claimEverythingCommand , ArgBridgeMappings )
25812581
25822582 // Top Level
25832583 ULxLyCmd .AddCommand (ulxlyBridgeAndClaimCmd )
0 commit comments