def invoke(*args)
    handle_options args

    if options[:help] then
      show_help
    elsif @when_invoked then
      @when_invoked.call options
    else
      execute
    end
  end
#
Invoke the command with the given list of arguments.