aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli/--version.rb
blob: bbc719c3b6b379f762ceddbffd4dbed4e20e80f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Hbc
  class CLI
    class Version < Base
      def self.command_name
        "--#{super}"
      end

      def self.run(*args)
        raise ArgumentError, "#{command_name} does not take arguments." unless args.empty?
        puts Hbc.full_version
      end

      def self.help
        "displays the Homebrew-Cask version"
      end
    end
  end
end