Skip to content

Commit

Permalink
Merge pull request sensu#248 from decklin/version-flag
Browse files Browse the repository at this point in the history
Add --version flag
  • Loading branch information
portertech committed Mar 14, 2012
2 parents 1c9a7ee + c36825a commit b08d5cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/sensu/config.rb
Expand Up @@ -225,6 +225,10 @@ def self.read_arguments(arguments)
puts opts
exit
end
opts.on('-V', '--version', 'Display version') do
puts Sensu::VERSION
exit
end
opts.on('-c', '--config FILE', 'Sensu JSON config FILE. Default is /etc/sensu/config.json') do |file|
options[:config_file] = file
end
Expand Down

0 comments on commit b08d5cb

Please sign in to comment.