code: private static int parseTimeout(
        final Namespace options, final String dest,
        final String envVarName, final int defaultValue) {
  
      if (options.getInt(dest) != null) {
        return options.getInt(dest);
      }
      if (System.getenv(envVarName) != null) {
        // if this is not an integer then let it blow up
        return Integer.parseInt(System.getenv(envVarName));
      }
      return defaultValue;
    }
docs: Return the timeout value to use, first checking the argument provided to the CLI invocation,
  then an environment variable, then the default value.