code: def from_commandline(cmdline, classname=None):
      
      params = split_options(cmdline)
      cls = params[0]
      params = params[1:]
      handler = OptionHandler(javabridge.static_call(
          "Lweka/core/Utils;", "forName",
          "(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/Object;",
          javabridge.class_for_name("java.lang.Object"), cls, params))
      if classname is None:
          return handler
      else:
          c = get_class(classname)
          return c(jobject=handler.jobject)
docs: Creates an OptionHandler based on the provided commandline string.
  
      :param cmdline: the commandline string to use
      :type cmdline: str
      :param classname: the classname of the wrapper to return other than OptionHandler (in dot-notation)
      :type classname: str
      :return: the generated option handler instance
      :rtype: object