code: func MethodUsageFlags(method string) (UsageFlag, error) {
  	// Look up details about the provided method and error out if not
  	// registered.
  	registerLock.RLock()
  	info, ok := methodToInfo[method]
  	registerLock.RUnlock()
  	if !ok {
  		str := fmt.Sprintf("%q is not registered", method)
  		return 0, makeError(ErrUnregisteredMethod, str)
  	}
  
  	return info.flags, nil
  }
docs: // MethodUsageFlags returns the usage flags for the passed command method.  The
  // provided method must be associated with a registered type.  All commands
  // provided by this package are registered by default.