code: func (cli *NetworkCli) Subcmd(chain, name, signature, description string, exitOnError bool) *flag.FlagSet {
  	var errorHandling flag.ErrorHandling
  	if exitOnError {
  		errorHandling = flag.ExitOnError
  	} else {
  		errorHandling = flag.ContinueOnError
  	}
  	flags := flag.NewFlagSet(name, errorHandling)
  	flags.Usage = func() {
  		flags.ShortUsage()
  		flags.PrintDefaults()
  	}
  	flags.ShortUsage = func() {
  		options := ""
  		if signature != "" {
  			signature = " " + signature
  		}
  		if flags.FlagCountUndeprecated() > 0 {
  			options = " [OPTIONS]"
  		}
  		fmt.Fprintf(cli.out, "\nUsage: %s %s%s%s\n\n%s\n\n", chain, name, options, signature, description)
  		flags.SetOutput(cli.out)
  	}
  	return flags
  }
docs: // Subcmd is borrowed from Docker UI and performs the same function of configuring the subCmds