code: public static void main(String[] args) {
          if (args.length != 3)
              printUsage();
          try {
              Version version = parseVersionString(args[0]);
              if (version == null) {
                  System.err.println(
                          "Invalid version number format, must be \"x.y.z(-.*)?\"");
                  System.exit(1);
              }
              int rev;
              try {
                  rev = Integer.parseInt(args[1]);
              } catch (NumberFormatException e) {
                  rev = -1;
              }
              generateFile(new File("."), version, rev, args[2]);
          } catch (NumberFormatException e) {
              System.err.println(
                      "All version-related parameters must be valid integers!");
              throw e;
          }
      }
docs: Emits a org.apache.zookeeper.version.Info interface file with version and
  revision information constants set to the values passed in as command
  line parameters. The file is created in the current directory. <br>
  Usage: java org.apache.zookeeper.version.util.VerGen maj.min.micro[-qualifier]
  rev buildDate
  
  @param args
  <ul>
  <li>maj - major version number
  <li>min - minor version number
  <li>micro - minor minor version number
  <li>qualifier - optional qualifier (dash followed by qualifier text)
  <li>rev - current SVN revision number
  <li>buildDate - date the build
  </ul>