diff options
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/--version.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/--version.rb b/Library/Homebrew/cask/lib/hbc/cli/--version.rb new file mode 100644 index 000000000..bbc719c3b --- /dev/null +++ b/Library/Homebrew/cask/lib/hbc/cli/--version.rb @@ -0,0 +1,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 |
