Method: Dry::CLI::Usage.justify
- Defined in:
- lib/dry/cli/usage.rb
.justify(string, padding, usage) ⇒ Object
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.
77 78 79 80 81 |
# File 'lib/dry/cli/usage.rb', line 77 def self.justify(string, padding, usage) return string.chomp(" ") if usage.nil? string.ljust(padding + padding / 2) end |