summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorjtimberman <joshua@opscode.com>2009-06-18 12:53:01 -0600
committerjtimberman <joshua@opscode.com>2009-06-18 12:53:01 -0600
commit413516b8d2cf39dc76023e07c97e2b6b50a28ad5 (patch)
treeba1cf5d60ca4d7c9aa1fa19754eb5ab09d14c296 /bin
parent67dc63cd60333ff452c29b03c488fd11c340c6fc (diff)
downloadohai-413516b8d2cf39dc76023e07c97e2b6b50a28ad5.tar.gz
add help on attribute usage
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ohai3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ohai b/bin/ohai
index 0b69ee9b..d6593d26 100755
--- a/bin/ohai
+++ b/bin/ohai
@@ -32,7 +32,7 @@ config = {
}
opts = OptionParser.new do |opts|
- opts.banner = "Usage: #{$0} (options)"
+ opts.banner = "Usage: #{$0} (options) [attributes]"
opts.on("-d", "--directory NAME", "A directory to add to the Ohai search path") do |d|
config[:directory] = d
end
@@ -48,6 +48,7 @@ opts = OptionParser.new do |opts|
end
opts.on_tail("-h", "--help", "Show this message") do
puts opts
+ puts "\n [attributes] is a space-separated list of top-level attributes to display (JSON)."
exit
end
end