org.wildfly.swarm.cli

## Interface Option.Action<T>

- Enclosing class:
    Option<T>

      public static interface Option.Action<T>

  Callback functional interface for matched options.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `set(CommandLine commandLine, Option<T> option, String value)` Perform some action, being passed the value and the `CommandLine`.

- - ### Method Detail

    - #### set

          void set(CommandLine commandLine,
                   Option<T> option,
                   String value)
            throws Exception

      Perform some action, being passed the value and the `CommandLine`.
      Parameters:
        `commandLine` - The state-holding `CommandLine` object.
        `option` - The matched option.
        `value` - The value to the option, if any. Possibly `null`.
      Throws:
        `if` - an error occurs
        `Exception`

Copyright © 2017 JBoss by Red Hat. All rights reserved.