Method: CommandKit::Options::OptionValue#usage

Defined in:
lib/command_kit/options/option_value.rb

#usageString?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The usage string for the argument.

Returns:

API:

  • private



110
111
112
113
114
# File 'lib/command_kit/options/option_value.rb', line 110

def usage
  string = @usage
  string = "[#{string}]" if optional?
  string
end