Package picocli

Interface CommandLine.Model.ISetter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T set​(T value)
      Sets the new value of the option or positional parameter.
    • Method Detail

      • set

        <T> T set​(T value)
           throws java.lang.Exception
        Sets the new value of the option or positional parameter.
        Type Parameters:
        T - type of the value
        Parameters:
        value - the new value of the option or positional parameter
        Returns:
        the previous value of the binding (if supported by this binding)
        Throws:
        CommandLine.PicocliException - if a problem occurred while setting the new value
        java.lang.Exception - internally, picocli call sites will catch any exceptions thrown from here and rethrow them wrapped in a PicocliException