code: func getBlockAttempts(cCmd *cobra.Command) int {
  	// By default we wait forever
  	var attempts int = 0
  
  	if sharedFlags.BlockAttempts > 0 {
  		attempts = sharedFlags.BlockAttempts
  	}
  
  	if sharedFlags.NoBlock {
  		attempts = -1
  	}
  
  	return attempts
  }
docs: // getBlockAttempts gets the correct value of how many attempts to try
  // before giving up on an operation.
  // It returns a negative value which means do not block, if zero is
  // returned then it means try forever, and if a positive value is
  // returned then try up to that value