class Eks::Command
Public Class Methods
dispatch(m, args, options, config)
click to toggle source
Calls superclass method
# File lib/eks/command.rb, line 6 def dispatch(m, args, options, config) # Allow calling for help via: # eks command help # eks command -h # eks command --help # eks command -D # # as well thor's normal way: # # eks help command help_flags = Thor::HELP_MAPPINGS + ["help"] if args.length > 1 && !(args & help_flags).empty? args -= help_flags args.insert(-2, "help") end super end