Sha256: 3395e1b1004a4773e8e4a895b8162538b73d8669c283fc26687958f99d650fb7

Contents?: true

Size: 504 Bytes

Versions: 12

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

desc "Get help for the command line interface"
argument :command, "The command to get help for"
task :help, [:command] do |_, args|
  # FIXME: Without this condition the command runs infinitely. The reason isn't
  # obvious and needs to be revisited at some point in the future.
  #
  unless defined?($helping) && $helping
    $helping = true
    if args.key?(:command)
      Pakyow::CLI.new([args[:command], "-h"])
    else
      Pakyow::CLI.new(["-h"])
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pakyow-core-1.0.6 lib/pakyow/tasks/help.rake
pakyow-core-1.0.5 lib/pakyow/tasks/help.rake
pakyow-core-1.0.4 lib/pakyow/tasks/help.rake
pakyow-core-1.0.3 lib/pakyow/tasks/help.rake
pakyow-core-1.0.2 lib/pakyow/tasks/help.rake
pakyow-core-1.0.1 lib/pakyow/tasks/help.rake
pakyow-core-1.0.0 lib/pakyow/tasks/help.rake
pakyow-core-1.0.0.rc5 lib/pakyow/tasks/help.rake
pakyow-core-1.0.0.rc4 lib/pakyow/tasks/help.rake
pakyow-core-1.0.0.rc3 lib/pakyow/tasks/help.rake
pakyow-core-1.0.0.rc2 lib/pakyow/tasks/help.rake
pakyow-core-1.0.0.rc1 lib/pakyow/tasks/help.rake