github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/icamauth/client/cli/flags.go (about)

     1  package cli
     2  
     3  import (
     4  	flag "github.com/spf13/pflag"
     5  )
     6  
     7  const (
     8  	// The connection end identifier on the controller chain
     9  	FlagConnectionID = "connection-id"
    10  	// The controller chain channel version
    11  	FlagVersion = "version"
    12  )
    13  
    14  // common flagsets to add to various functions
    15  var (
    16  	fsConnectionID = flag.NewFlagSet("", flag.ContinueOnError)
    17  	fsVersion      = flag.NewFlagSet("", flag.ContinueOnError)
    18  )
    19  
    20  func init() {
    21  	fsConnectionID.String(FlagConnectionID, "", "Connection ID")
    22  	fsVersion.String(FlagVersion, "", "Version")
    23  }